mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-15 21:43:00 +02:00
core115: Regenerate IPsec configuration
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -7,6 +7,7 @@ srv/web/ipfire/cgi-bin/captive/logo.cgi
|
||||
srv/web/ipfire/cgi-bin/captive/redirect.cgi
|
||||
srv/web/ipfire/cgi-bin/captive.cgi
|
||||
srv/web/ipfire/cgi-bin/proxy.cgi
|
||||
srv/web/ipfire/cgi-bin/vpnmain.cgi
|
||||
srv/web/ipfire/html/captive
|
||||
usr/bin/captive-cleanup
|
||||
usr/local/bin/backupiso
|
||||
|
||||
@@ -62,6 +62,12 @@ fcrontab -z
|
||||
/etc/rc.d/init.d/apache2 reload
|
||||
/etc/rc.d/init.d/firewall restart
|
||||
|
||||
# Regenerate IPsec configuration
|
||||
sudo -u nobody /srv/web/ipfire/cgi-bin/vpnmain.cgi
|
||||
if grep -q "ENABLED=on" /var/ipfire/vpn/settings; then
|
||||
/etc/init.d/ipsec restart
|
||||
fi
|
||||
|
||||
# This update need a reboot...
|
||||
#touch /var/run/need_reboot
|
||||
|
||||
|
||||
Reference in New Issue
Block a user