From: Peter Müller Date: Sun, 18 Sep 2022 08:01:18 +0000 (+0000) Subject: Core Update 171: Only start services if they are actually enabled X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3ce996ffc3bb0c0c4f0cadc2442f8417b9cab172;p=people%2Fms%2Fipfire-2.x.git Core Update 171: Only start services if they are actually enabled Signed-off-by: Peter Müller --- diff --git a/config/rootfiles/core/171/update.sh b/config/rootfiles/core/171/update.sh index 2c07d2f087..8a6c197101 100644 --- a/config/rootfiles/core/171/update.sh +++ b/config/rootfiles/core/171/update.sh @@ -148,12 +148,18 @@ ldconfig /usr/local/bin/filesystem-cleanup # Start services -/etc/init.d/squid start -/etc/init.d/openvpn 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 + # This update needs a reboot... touch /var/run/need_reboot