summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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