]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - config/backup/backup.pl
Forward Firewall: Minor changes...
[people/teissler/ipfire-2.x.git] / config / backup / backup.pl
index 0d75853211035cfb3758f2ffbf6787c59f5c4bf1..28129e46ecc9747e8f588e1801f15fe5096e9c2f 100644 (file)
@@ -64,14 +64,12 @@ 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");
-  system("/usr/sbin/convert-xtaccess");
-  system("/usr/sbin/convert-outgoingfw");
-  
-  #clean up system, if an old backup was restored
   if( -d "/var/ipfire/outgoing"){
+         system("/usr/sbin/convert-outgoingfw");
          rmtree("/var/ipfire/outgoing");
   }
   if( -d "/var/ipfire/xtaccess"){
+         system("/usr/sbin/convert-xtaccess");
          rmtree("/var/ipfire/xtaccess");
   }
  }