mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
Fix restarting Squid and OpenVPN during Core Update 171
My fault, again. :-/ Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user