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:
Peter Müller
2022-09-18 08:02:14 +00:00
parent 3ce996ffc3
commit 79fb08749b

View File

@@ -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