Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/apache:master commit in: 2.4/init/
Date: Thu, 03 Dec 2020 16:06:49
Message-Id: 1607011470.ab533766866142e385035dd3420b99b7ce23efc4.polynomial-c@gentoo
1 commit: ab533766866142e385035dd3420b99b7ce23efc4
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 3 16:04:30 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 3 16:04:30 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/apache.git/commit/?id=ab533766
7
8 2.4/init: Another small interface check tweak
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 2.4/init/apache2.initd | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15 diff --git a/2.4/init/apache2.initd b/2.4/init/apache2.initd
16 index 6e5e292..77e9e36 100755
17 --- a/2.4/init/apache2.initd
18 +++ b/2.4/init/apache2.initd
19 @@ -37,7 +37,7 @@ depend() {
20 after sshd
21 if ! echo ${rc_need} | grep -Fq "net." ; then
22 local x warn_addr
23 - for x in $(virtualhosts | grep '^\(\[\|\*:\|\)[[:digit:]]' | sed 's@\(:[[:digit:]]\{1,5\}\)\([[:space:]].*\|$\)@\1@' | sort -u) ; do
24 + for x in $(virtualhosts 2>/dev/null | grep '^\(\[\|\*:\|\)[[:digit:]]' | sed 's@\(:[[:digit:]]\{1,5\}\)\([[:space:]].*\|$\)@\1@' | sort -u) ; do
25 case "${x}" in
26 \*:80|\*:443) ;;
27 *) warn_addr="${warn_addr} ${x}" ;;