Skip to content

Commit ba5bdb1

Browse files
author
Serghey Rodin
committed
forcibly disable apache when it is not used
1 parent 0734b30 commit ba5bdb1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

install/vst-install-debian.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,9 @@ if [ "$apache" = 'yes' ]; then
844844
update-rc.d apache2 defaults
845845
service apache2 start
846846
check_result $? "apache2 start failed"
847+
else
848+
update-rc.d apache2 disable >/dev/null 2>&1
849+
service apache2 stop >/dev/null 2>&1
847850
fi
848851

849852

install/vst-install-ubuntu.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,9 @@ if [ "$apache" = 'yes' ]; then
834834
update-rc.d apache2 defaults
835835
service apache2 start
836836
check_result $? "apache2 start failed"
837+
else
838+
update-rc.d apache2 disable >/dev/null 2>&1
839+
service apache2 stop >/dev/null 2>&1
837840
fi
838841

839842

0 commit comments

Comments
 (0)