From c490c6e802d8b42b521bb091c2538e3aeebaed58 Mon Sep 17 00:00:00 2001 From: Alexander Marx Date: Mon, 7 Jan 2013 12:52:01 +0100 Subject: [PATCH] Backup: added ovpn-ccd-converter script to restore. With this patch one is able to restore old backups and the openvpn clients get converted for new ccd-file --- config/backup/backup.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/backup/backup.pl b/config/backup/backup.pl index d2d6816b0b..f9b8302af9 100644 --- a/config/backup/backup.pl +++ b/config/backup/backup.pl @@ -62,6 +62,8 @@ elsif ($ARGV[0] eq 'exclude') { } elsif ($ARGV[0] eq 'restore') { system("cd / && tar -xvz -p -f /tmp/restore.ipf"); + #Here some converter scripts to correct old Backups (before core 65) + system("/usr/sbin/ovpn-ccd-convert"); } elsif ($ARGV[0] eq 'restoreaddon') { if ( -e "/tmp/$ARGV[1]" ){system("mv /tmp/$ARGV[1] /var/ipfire/backup/addons/backup/$ARGV[1]");} -- 2.39.5