From 492c9fb64b8744fca6a8f403dd3741f12a417397 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20M=C3=BCller?= Date: Sun, 18 Sep 2022 20:21:24 +0000 Subject: [PATCH] Fix restarting Squid and OpenVPN during Core Update 171 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit My fault, again. :-/ Signed-off-by: Peter Müller --- config/rootfiles/core/171/update.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/config/rootfiles/core/171/update.sh b/config/rootfiles/core/171/update.sh index 48fd742b56..dd093e8563 100644 --- a/config/rootfiles/core/171/update.sh +++ b/config/rootfiles/core/171/update.sh @@ -34,7 +34,8 @@ done # Stop services /etc/rc.d/init.d/apache stop /etc/rc.d/init.d/squid stop -/etc/rc.d/init.d/openvpn stop +/usr/local/bin/openvpnctrl -k +/usr/local/bin/openvpnctrl -kn2n /etc/rc.d/init.d/ipsec stop # Remove files @@ -151,12 +152,13 @@ ldconfig # Start services /etc/rc.d/init.d/apache start if grep -q "ENABLED=on" /var/ipfire/ovpn/settings; then - /etc/init.d/openvpn start + /usr/local/bin/openvpnctrl -s + /usr/local/bin/openvpnctrl -sn2n fi if grep -q "ENABLED=on" /var/ipfire/vpn/settings; then /etc/init.d/ipsec start fi -if -f /var/ipfire/proxy/enable; then +if [ -f /var/ipfire/proxy/enable ]; then /etc/init.d/squid start fi -- 2.39.5