]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - config/rootfiles/core/57/update.sh
core57: stop/start ipsec at update.
[ipfire-2.x.git] / config / rootfiles / core / 57 / update.sh
index 6668c8f5522cb53386d6523fa72be6a3fec3b128..177bf721f7e9137da45bc9ed65e23693e0350df6 100644 (file)
@@ -36,16 +36,19 @@ done
 #Stop services
 /etc/init.d/squid stop
 /etc/init.d/apache stop
+/etc/init.d/ipsec stop
 
 #
 #Extract files
 extract_files
 
-
 #
 #Start services
 /etc/init.d/squid start
 /etc/init.d/apache start
+if [ `grep "ENABLED=on" /var/ipfire/vpn/settings` ]; then
+       /etc/init.d/ipsec start
+fi
 
 #
 #Update Language cache