mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-13 12:32:59 +02:00
Core Update 171: Stop Apache before applying the upgrade
Since we replace Perl, users most likely get to see some nasty "Internal Server Error" messages during the upgrade. To suppres them, and to limit the chance of side effects, stop Apache before applying the update, and start it again afterwards. Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
This commit is contained in:
@@ -32,6 +32,7 @@ for (( i=1; i<=$core; i++ )); do
|
||||
done
|
||||
|
||||
# Stop services
|
||||
/etc/rc.d/init.d/apache stop
|
||||
/etc/rc.d/init.d/squid stop
|
||||
/etc/rc.d/init.d/openvpn stop
|
||||
/etc/rc.d/init.d/ipsec stop
|
||||
@@ -148,14 +149,13 @@ ldconfig
|
||||
/usr/local/bin/filesystem-cleanup
|
||||
|
||||
# Start services
|
||||
/etc/rc.d/init.d/apache start
|
||||
if grep -q "ENABLED=on" /var/ipfire/ovpn/settings; then
|
||||
/etc/init.d/openvpn start
|
||||
fi
|
||||
|
||||
if grep -q "ENABLED=on" /var/ipfire/vpn/settings; then
|
||||
/etc/init.d/ipsec start
|
||||
fi
|
||||
|
||||
if -f /var/ipfire/proxy/enable; then
|
||||
/etc/init.d/squid start
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user