mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-22 00:42:59 +02:00
backup: Convert backups with old CCD files.
This commit is contained in:
@@ -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]");}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user