1 |
commit: c5b868a72f9bd9709fcc2bb603e2ef4b148603b5 |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 21 15:49:17 2016 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 3 12:46:26 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/apache.git/commit/?id=c5b868a7 |
7 |
|
8 |
apache2.initd: set defaults for LYNX and STATUSURL once. |
9 |
|
10 |
The default values for the LYNX and STATUSURL variables were set in |
11 |
functions. Now that the other conf.d defaults are set at the beginning |
12 |
of the script, it makes sense to set these there, too. The LYNX |
13 |
default was set twice, in configdump() and fullstatus(), so this |
14 |
eliminates some duplication. |
15 |
|
16 |
2.4/init/apache2.initd | 6 ++---- |
17 |
1 file changed, 2 insertions(+), 4 deletions(-) |
18 |
|
19 |
diff --git a/2.4/init/apache2.initd b/2.4/init/apache2.initd |
20 |
index ed9fdc5..de57251 100755 |
21 |
--- a/2.4/init/apache2.initd |
22 |
+++ b/2.4/init/apache2.initd |
23 |
@@ -20,6 +20,8 @@ PIDFILE="${PIDFILE:-/var/run/apache2.pid}" |
24 |
TIMEOUT=${TIMEOUT:-15} |
25 |
SERVERROOT="${SERVERROOT:-/usr/lib/apache2}" |
26 |
CONFIGFILE="${CONFIGFILE:-/etc/apache2/httpd.conf}" |
27 |
+LYNX="${LYNX:-lynx -dump}" |
28 |
+STATUSURL="${STATUSURL:-http://localhost/server-status}" |
29 |
RELOAD_TYPE="${RELOAD_TYPE:-graceful}" |
30 |
|
31 |
# Append the server root and configuration file parameters to the |
32 |
@@ -149,9 +151,6 @@ modules() { |
33 |
} |
34 |
|
35 |
fullstatus() { |
36 |
- LYNX="${LYNX:-lynx -dump}" |
37 |
- STATUSURL="${STATUSURL:-http://localhost/server-status}" |
38 |
- |
39 |
if ! type -p $(set -- ${LYNX}; echo $1) 2>&1 >/dev/null; then |
40 |
eerror "lynx not found! you need to emerge www-client/lynx" |
41 |
else |
42 |
@@ -165,7 +164,6 @@ virtualhosts() { |
43 |
} |
44 |
|
45 |
configdump() { |
46 |
- LYNX="${LYNX:-lynx -dump}" |
47 |
INFOURL="${INFOURL:-http://localhost/server-info}" |
48 |
|
49 |
checkconfd || return 1 |