diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2018-03-23 17:16:16 +0100 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2018-03-23 17:20:10 +0100 |
commit | 04a0e8d110f76f7e432e32ecf87a81be83e5cf9b (patch) | |
tree | ce7b2b61488234f175bd40eebb9c2c21917b36c3 /2.4 | |
parent | 2.4/scripts/apache2ctl: Pass commands to the apache daemon. (diff) | |
download | apache-04a0e8d110f76f7e432e32ecf87a81be83e5cf9b.tar.gz apache-04a0e8d110f76f7e432e32ecf87a81be83e5cf9b.tar.bz2 apache-04a0e8d110f76f7e432e32ecf87a81be83e5cf9b.zip |
2.4/scripts/apache2ctl: POSIX shells don't know =~ test operator.
Fixed by using "echo ... | grep -q ..." combination.
Gentoo-Bug: https://bugs.gentoo.org/650678
Diffstat (limited to '2.4')
-rw-r--r-- | 2.4/scripts/apache2ctl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/2.4/scripts/apache2ctl b/2.4/scripts/apache2ctl index 2c7c699..6f5920d 100644 --- a/2.4/scripts/apache2ctl +++ b/2.4/scripts/apache2ctl @@ -17,7 +17,7 @@ load_rc_config() { # If first parameter is a verb defined in $RC_VERBS, pass the command to init script. # In other cases, compile command line and run the command on apache binary. -if [ "${RC_VERBS}" =~ "${1}" ] ; then +if echo "${RC_VERBS}" | grep -q "${1}" ; then exec /etc/init.d/apache2 "${@}" else load_rc_config || exit 1 |