summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2020-12-03 17:04:30 +0100
committerLars Wendler <polynomial-c@gentoo.org>2020-12-03 17:04:30 +0100
commitab533766866142e385035dd3420b99b7ce23efc4 (patch)
treef8d4f6ecdc9add5bca23279143d2f9ff44d29c1a
parent2.4/init: Fixed typo in interface check (diff)
downloadapache-ab533766866142e385035dd3420b99b7ce23efc4.tar.gz
apache-ab533766866142e385035dd3420b99b7ce23efc4.tar.bz2
apache-ab533766866142e385035dd3420b99b7ce23efc4.zip
2.4/init: Another small interface check tweak
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
-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}" ;;