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:
parent
1a875c003e
commit
7ed26009c3
@ -147,11 +147,11 @@ if $systemd_supported ; then
|
|||||||
# - Is Service exclusive controlled by systemd
|
# - Is Service exclusive controlled by systemd
|
||||||
# -
|
# -
|
||||||
if systemctl -t service list-unit-files \
|
if systemctl -t service list-unit-files \
|
||||||
| grep -e "^apache" \
|
| grep -e "^apache2.service" \
|
||||||
| grep -q -E "(enabled|disabled)" 2> /devnull ; then
|
| grep -q -E "(enabled|disabled)" 2> /devnull ; then
|
||||||
|
|
||||||
APACHE_SERVICE_FILE=$(systemctl -t service list-unit-files \
|
APACHE_SERVICE_FILE=$(systemctl -t service list-unit-files \
|
||||||
| grep -e "^apache" \
|
| grep -e "^apache2.service" \
|
||||||
| awk '{print$1}')
|
| awk '{print$1}')
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
@ -108,11 +108,11 @@ if $systemd_supported ; then
|
|||||||
# - Is Service exclusive controlled by systemd
|
# - Is Service exclusive controlled by systemd
|
||||||
# -
|
# -
|
||||||
if systemctl -t service list-unit-files \
|
if systemctl -t service list-unit-files \
|
||||||
| grep -e "^apache" \
|
| grep -e "^apache2.service" \
|
||||||
| grep -q -E "(enabled|disabled)" 2> /devnull ; then
|
| grep -q -E "(enabled|disabled)" 2> /devnull ; then
|
||||||
|
|
||||||
APACHE_SERVICE_FILE=$(systemctl -t service list-unit-files \
|
APACHE_SERVICE_FILE=$(systemctl -t service list-unit-files \
|
||||||
| grep -e "^apache" \
|
| grep -e "^apache2.service" \
|
||||||
| awk '{print$1}')
|
| awk '{print$1}')
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
@ -112,11 +112,11 @@ if $systemd_supported ; then
|
|||||||
# - Is Service exclusive controlled by systemd
|
# - Is Service exclusive controlled by systemd
|
||||||
# -
|
# -
|
||||||
if systemctl -t service list-unit-files \
|
if systemctl -t service list-unit-files \
|
||||||
| grep -e "^apache" \
|
| grep -e "^apache2.service" \
|
||||||
| grep -q -E "(enabled|disabled)" 2> /devnull ; then
|
| grep -q -E "(enabled|disabled)" 2> /devnull ; then
|
||||||
|
|
||||||
APACHE_SERVICE_FILE=$(systemctl -t service list-unit-files \
|
APACHE_SERVICE_FILE=$(systemctl -t service list-unit-files \
|
||||||
| grep -e "^apache" \
|
| grep -e "^apache2.service" \
|
||||||
| awk '{print$1}')
|
| awk '{print$1}')
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user