mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-05-06 05:46:52 +02:00
forcibly disable apache when it is not used
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user