Bläddra i källkod

forcibly disable apache when it is not used

Serghey Rodin 9 år sedan
förälder
incheckning
ba5bdb12ca
2 ändrade filer med 6 tillägg och 0 borttagningar
  1. 3 0
      install/vst-install-debian.sh
  2. 3 0
      install/vst-install-ubuntu.sh

+ 3 - 0
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
 
 

+ 3 - 0
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