mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
core120: Regenerate IPsec configuration
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -83,6 +83,12 @@ done
|
||||
/etc/init.d/apache restart
|
||||
/etc/init.d/unbound 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
|
||||
|
||||
# Remove deprecated SSH configuration option
|
||||
sed -e "/UsePrivilegeSeparation/d" -i /etc/ssh/sshd_config
|
||||
|
||||
|
||||
Reference in New Issue
Block a user