From 3ce996ffc3bb0c0c4f0cadc2442f8417b9cab172 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20M=C3=BCller?= Date: Sun, 18 Sep 2022 08:01:18 +0000 Subject: [PATCH] Core Update 171: Only start services if they are actually enabled MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Müller --- config/rootfiles/core/171/update.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 -- 2.39.5