From ba5bdb12ca4bbbecf54b6711e7b680372d0360d1 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Fri, 30 Sep 2016 12:40:17 +0300 Subject: [PATCH] forcibly disable apache when it is not used --- install/vst-install-debian.sh | 3 +++ install/vst-install-ubuntu.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/install/vst-install-debian.sh b/install/vst-install-debian.sh index 4aaf11af4..eb0273f50 100755 --- a/install/vst-install-debian.sh +++ b/install/vst-install-debian.sh @@ -844,6 +844,9 @@ if [ "$apache" = 'yes' ]; then update-rc.d apache2 defaults service apache2 start check_result $? "apache2 start failed" +else + update-rc.d apache2 disable >/dev/null 2>&1 + service apache2 stop >/dev/null 2>&1 fi diff --git a/install/vst-install-ubuntu.sh b/install/vst-install-ubuntu.sh index ca3c186a5..429cc8f7f 100755 --- a/install/vst-install-ubuntu.sh +++ b/install/vst-install-ubuntu.sh @@ -834,6 +834,9 @@ if [ "$apache" = 'yes' ]; then update-rc.d apache2 defaults service apache2 start check_result $? "apache2 start failed" +else + update-rc.d apache2 disable >/dev/null 2>&1 + service apache2 stop >/dev/null 2>&1 fi