[1/2] backup: Update OpenVPN CRL

Message ID 20221007145017.4096212-1-michael.tremer@ipfire.org
State Accepted
Commit 233baacd6753d8adb756219d5fac536d9b6f92ae
Headers
Series [1/2] backup: Update OpenVPN CRL |

Commit Message

Michael Tremer Oct. 7, 2022, 2:50 p.m. UTC
  After a backup is restored, the CRL might be out of data and client
won't be able to connect to the server any more.

This will immediately update the CRL should it require an update.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 config/backup/backup.pl | 3 +++
 1 file changed, 3 insertions(+)
  

Patch

diff --git a/config/backup/backup.pl b/config/backup/backup.pl
index 54957a814..6fd9e45bb 100644
--- a/config/backup/backup.pl
+++ b/config/backup/backup.pl
@@ -184,6 +184,9 @@  restore_backup() {
 	# move nobeeps if exist
 	[ -e "/var/ipfire/ppp/nobeeps" ] && mv /var/ipfire/ppp/nobeeps /var/ipfire/red/nobeeps
 
+	# Update OpenVPN CRL
+	/etc/fcron.daily/openvpn-crl-updater
+
 	return 0
 }