From: Adolf Belka Date: Sat, 23 Aug 2025 13:46:09 +0000 (+0200) Subject: backup.pl: Restart openvpn daemons after restore. X-Git-Tag: v2.29-core197~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=97469fbdd20c7c47b9d1f2df6b57f60ccda16560;p=ipfire-2.x.git backup.pl: Restart openvpn daemons after restore. - As the daemons are running when the restore is done then if the daemons are not restarted the running daemon stays with the previous config and not with the restored version. Tested-by: Adolf Belka Signed-off-by: Adolf Belka Signed-off-by: Michael Tremer --- diff --git a/config/backup/backup.pl b/config/backup/backup.pl index c9bc14355..e79f510c6 100644 --- a/config/backup/backup.pl +++ b/config/backup/backup.pl @@ -349,8 +349,10 @@ restore_backup() { rm /var/log/pakfire.log fi - # Update the OpenVPN configuration + # Update the OpenVPN configuration and restart the openvpn daemons sudo -u nobody /srv/web/ipfire/cgi-bin/ovpnmain.cgi + /etc/init.d/openvpn-n2n restart + /etc/init.d/openvpn-rw restart return 0 }