mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
forcibly disable apache when it is not used
This commit is contained in:
parent
0734b309e7
commit
ba5bdb12ca
2 changed files with 6 additions and 0 deletions
|
@ -844,6 +844,9 @@ if [ "$apache" = 'yes' ]; then
|
||||||
update-rc.d apache2 defaults
|
update-rc.d apache2 defaults
|
||||||
service apache2 start
|
service apache2 start
|
||||||
check_result $? "apache2 start failed"
|
check_result $? "apache2 start failed"
|
||||||
|
else
|
||||||
|
update-rc.d apache2 disable >/dev/null 2>&1
|
||||||
|
service apache2 stop >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -834,6 +834,9 @@ if [ "$apache" = 'yes' ]; then
|
||||||
update-rc.d apache2 defaults
|
update-rc.d apache2 defaults
|
||||||
service apache2 start
|
service apache2 start
|
||||||
check_result $? "apache2 start failed"
|
check_result $? "apache2 start failed"
|
||||||
|
else
|
||||||
|
update-rc.d apache2 disable >/dev/null 2>&1
|
||||||
|
service apache2 stop >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue