backup: Convert backups with old CCD files.

This commit is contained in:
Michael Tremer
2014-01-09 12:29:44 +01:00
parent 4436bc0e2f
commit 59cbe38697
2 changed files with 4 additions and 0 deletions

View File

@@ -64,6 +64,9 @@ 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");
# Convert old OpenVPN CCD files (CN change, core 75).
system("/usr/local/bin/convert-ovpn");
}
elsif ($ARGV[0] eq 'restoreaddon') {
if ( -e "/tmp/$ARGV[1]" ){system("mv /tmp/$ARGV[1] /var/ipfire/backup/addons/backup/$ARGV[1]");}

View File

@@ -4,5 +4,6 @@ opt/pakfire/lib/functions.pl
srv/web/ipfire/cgi-bin/ovpnmain.cgi
usr/lib/openvpn/verify
usr/local/bin/convert-ovpn
var/ipfire/backup/bin/backup.pl
var/ipfire/header.pl
var/ipfire/langs