]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Backup: added ovpn-ccd-converter script to restore. With this patch one is able to...
authorAlexander Marx <amarx@ipfire.org>
Mon, 7 Jan 2013 11:52:01 +0000 (12:52 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 7 Jan 2013 14:36:27 +0000 (15:36 +0100)
config/backup/backup.pl

index d2d6816b0b99b77ad5a3727d84b4df6bfdcd912c..f9b8302af91af7c90c8fa9a8d9a5b63773542613 100644 (file)
@@ -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]");}