summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2018-03-23 17:16:16 +0100
committerLars Wendler <polynomial-c@gentoo.org>2018-03-23 17:20:10 +0100
commit04a0e8d110f76f7e432e32ecf87a81be83e5cf9b (patch)
treece7b2b61488234f175bd40eebb9c2c21917b36c3 /2.4/scripts/apache2ctl
parent2.4/scripts/apache2ctl: Pass commands to the apache daemon. (diff)
downloadapache-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/scripts/apache2ctl')
-rw-r--r--2.4/scripts/apache2ctl2
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