From de035819157ca5cd264af7caacfb60d82b8ef6f1 Mon Sep 17 00:00:00 2001 From: Cloud User Date: Mon, 14 Aug 2017 12:01:57 +0000 Subject: [PATCH] add another path to check for apache service --- Modular Scripts/Apache2/configure-apache.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Modular Scripts/Apache2/configure-apache.sh b/Modular Scripts/Apache2/configure-apache.sh index 48f30c9..31a3b9d 100644 --- a/Modular Scripts/Apache2/configure-apache.sh +++ b/Modular Scripts/Apache2/configure-apache.sh @@ -113,7 +113,11 @@ checkApacheDetails() getApacheServiceName #verify if apache is installed as service - if [ ! -f /etc/init.d/$SERVICE ]; then + if [ -f /etc/init.d/$SERVICE ]; then + logMsgToConfigSysLog "INFO" "INFO: Apache is present as a service." + elif [ -f /usr/lib/systemd/system/$SERVICE.service ]; then + logMsgToConfigSysLog "INFO" "INFO: Apache is present as a service." + else logMsgToConfigSysLog "ERROR" "ERROR: Apache is not configured as a service" exit 1 fi