X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=config%2Frootfiles%2Fcore%2F91%2Fupdate.sh;h=e3341d2d36a689150f1855933834ff88111fcb49;hp=86671126085f36e561a47f9b18345876928a6c14;hb=06a076e0d881f2a4f6c6c57913cb8bf487cf9f2e;hpb=69a8ce7d9782eeace26c92584a0aa524b573aa43 diff --git a/config/rootfiles/core/91/update.sh b/config/rootfiles/core/91/update.sh index 8667112608..e3341d2d36 100644 --- a/config/rootfiles/core/91/update.sh +++ b/config/rootfiles/core/91/update.sh @@ -31,6 +31,9 @@ do rm -f /var/cache/pakfire/core-upgrade-*-$i.ipfire done +# Stop services +/etc/init.d/ipsec stop + # Extract files extract_files @@ -41,8 +44,16 @@ chmod 777 /srv/web/ipfire/html/{accounting,graphs} # Update Language cache /usr/local/bin/update-lang-cache +# Regenerate IPsec configuration +sudo -u nobody /srv/web/ipfire/cgi-bin/vpnmain.cgi + sync +# Start services +if [ `grep "ENABLED=on" /var/ipfire/vpn/settings` ]; then + /etc/init.d/ipsec start +fi + # This update need a reboot... #touch /var/run/need_reboot