From 59cbe38697db109f4860e1117b8307b588957b6c Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 9 Jan 2014 12:29:44 +0100 Subject: [PATCH] backup: Convert backups with old CCD files. --- config/backup/backup.pl | 3 +++ config/rootfiles/core/75/filelists/files | 1 + 2 files changed, 4 insertions(+) diff --git a/config/backup/backup.pl b/config/backup/backup.pl index f9b8302af9..fd626725ea 100644 --- a/config/backup/backup.pl +++ b/config/backup/backup.pl @@ -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]");} diff --git a/config/rootfiles/core/75/filelists/files b/config/rootfiles/core/75/filelists/files index 34458cac06..9d4fbe49a9 100644 --- a/config/rootfiles/core/75/filelists/files +++ b/config/rootfiles/core/75/filelists/files @@ -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 -- 2.39.2