summaryrefslogtreecommitdiff
path: root/2.4
diff options
context:
space:
mode:
Diffstat (limited to '2.4')
-rwxr-xr-x2.4/init/apache2.initd2
1 files changed, 1 insertions, 1 deletions
diff --git a/2.4/init/apache2.initd b/2.4/init/apache2.initd
index 6e5e292..77e9e36 100755
--- a/2.4/init/apache2.initd
+++ b/2.4/init/apache2.initd
@@ -37,7 +37,7 @@ depend() {
after sshd
if ! echo ${rc_need} | grep -Fq "net." ; then
local x warn_addr
- for x in $(virtualhosts | grep '^\(\[\|\*:\|\)[[:digit:]]' | sed 's@\(:[[:digit:]]\{1,5\}\)\([[:space:]].*\|$\)@\1@' | sort -u) ; do
+ 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}" ;;