diff options
author | 2020-12-03 17:04:30 +0100 | |
---|---|---|
committer | 2020-12-03 17:04:30 +0100 | |
commit | ab533766866142e385035dd3420b99b7ce23efc4 (patch) | |
tree | f8d4f6ecdc9add5bca23279143d2f9ff44d29c1a | |
parent | 2.4/init: Fixed typo in interface check (diff) | |
download | apache-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-x | 2.4/init/apache2.initd | 2 |
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}" ;; |