From: Alexander Marx Date: Mon, 7 Jan 2013 11:52:01 +0000 (+0100) Subject: Backup: added ovpn-ccd-converter script to restore. With this patch one is able to... X-Git-Tag: v2.13-beta2~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c490c6e802d8b42b521bb091c2538e3aeebaed58;p=ipfire-2.x.git 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 --- 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]");}