summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x2.4/init/apache2.initd9
1 files changed, 2 insertions, 7 deletions
diff --git a/2.4/init/apache2.initd b/2.4/init/apache2.initd
index 0058e20..1691007 100755
--- a/2.4/init/apache2.initd
+++ b/2.4/init/apache2.initd
@@ -36,13 +36,8 @@ depend() {
use dns entropy logger mysql netmount postgresql
after sshd
if ! echo ${rc_need} | grep -Fq "net." ; then
- local x warn_addr
- for x in $(virtualhosts 2>/dev/null | grep '^\(\[\|\*:\|\)[[:digit:]]' | sed 's@\(:[[:digit:]]\{1,5\}\)\([[:space:]].*\|$\)@\1@' | sort -u) ; do
- case "${x}" in
- \*:80|\*:443) ;;
- *) warn_addr="${warn_addr} ${x}" ;;
- esac
- done
+ local warn_addr
+ warn_addr="$(virtualhosts 2>/dev/null | sed -nre 's/^([^ *]+:[0-9]+)[[:space:]].*/\1/p' | tr '\n' ' ')"
if [ -n "${warn_addr}" ] ; then
need net
ewarn "You are binding an interface in you virtual hosts."