Core Update 171: Only start services if they are actually enabled

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
This commit is contained in:
Peter Müller
2022-09-18 08:01:18 +00:00
parent 78ba051486
commit 3ce996ffc3

View File

@@ -148,12 +148,18 @@ ldconfig
/usr/local/bin/filesystem-cleanup /usr/local/bin/filesystem-cleanup
# Start services # Start services
/etc/init.d/squid start if grep -q "ENABLED=on" /var/ipfire/ovpn/settings; then
/etc/init.d/openvpn start /etc/init.d/openvpn start
fi
if grep -q "ENABLED=on" /var/ipfire/vpn/settings; then if grep -q "ENABLED=on" /var/ipfire/vpn/settings; then
/etc/init.d/ipsec start /etc/init.d/ipsec start
fi fi
if -f /var/ipfire/proxy/enable; then
/etc/init.d/squid start
fi
# This update needs a reboot... # This update needs a reboot...
touch /var/run/need_reboot touch /var/run/need_reboot