Fix error in determin apache2 systemd service file. runs into an error, if apache2 was installed from debian package system.

This commit is contained in:
Christoph 2018-05-14 03:11:41 +02:00
parent 1a875c003e
commit 7ed26009c3
3 changed files with 6 additions and 6 deletions

View File

@ -147,11 +147,11 @@ if $systemd_supported ; then
# - Is Service exclusive controlled by systemd
# -
if systemctl -t service list-unit-files \
| grep -e "^apache" \
| grep -e "^apache2.service" \
| grep -q -E "(enabled|disabled)" 2> /devnull ; then
APACHE_SERVICE_FILE=$(systemctl -t service list-unit-files \
| grep -e "^apache" \
| grep -e "^apache2.service" \
| awk '{print$1}')
fi

View File

@ -108,11 +108,11 @@ if $systemd_supported ; then
# - Is Service exclusive controlled by systemd
# -
if systemctl -t service list-unit-files \
| grep -e "^apache" \
| grep -e "^apache2.service" \
| grep -q -E "(enabled|disabled)" 2> /devnull ; then
APACHE_SERVICE_FILE=$(systemctl -t service list-unit-files \
| grep -e "^apache" \
| grep -e "^apache2.service" \
| awk '{print$1}')
fi

View File

@ -112,11 +112,11 @@ if $systemd_supported ; then
# - Is Service exclusive controlled by systemd
# -
if systemctl -t service list-unit-files \
| grep -e "^apache" \
| grep -e "^apache2.service" \
| grep -q -E "(enabled|disabled)" 2> /devnull ; then
APACHE_SERVICE_FILE=$(systemctl -t service list-unit-files \
| grep -e "^apache" \
| grep -e "^apache2.service" \
| awk '{print$1}')
fi