]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - config/rootfiles/core/179/update.sh
Core Update 179: Only start services if they are enabled
[ipfire-2.x.git] / config / rootfiles / core / 179 / update.sh
index 636792d82066a324a1170d90146e8a2466311610..df89d702ec29250460362890814df15751009740 100644 (file)
@@ -86,9 +86,13 @@ migrate_extrahd
 
 # Start services
 /etc/init.d/udev restart
-/etc/init.d/squid restart
-/usr/local/bin/openvpnctrl -s
-/usr/local/bin/openvpnctrl -sn2n
+if [ -f /var/ipfire/proxy/enable ]; then
+       /etc/init.d/squid restart
+fi
+if grep -q "ENABLED=on" /var/ipfire/ovpn/settings; then
+       /usr/local/bin/openvpnctrl -s
+       /usr/local/bin/openvpnctrl -sn2n
+fi
 
 # This update needs a reboot...
 touch /var/run/need_reboot