[pve-devel] [PATCH container] fix #3275: remove old FW config when restoring
Fabian Grünbichler
f.gruenbichler at proxmox.com
Thu Jan 28 09:25:59 CET 2021
otherwise proxmox-backup-client will error and the whole restore will
fail.
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
src/PVE/LXC/Create.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/PVE/LXC/Create.pm b/src/PVE/LXC/Create.pm
index 0b38d7d..82d7ad9 100644
--- a/src/PVE/LXC/Create.pm
+++ b/src/PVE/LXC/Create.pm
@@ -294,6 +294,7 @@ sub restore_configuration_from_proxmox_backup {
if -e $pct_fwcfg_target;
} else {
mkdir $pve_firewall_dir; # make sure the directory exists
+ unlink $pct_fwcfg_target;
my $cmd = "restore";
my $param = [$name, "fw.conf", $pct_fwcfg_target];
--
2.20.1
More information about the pve-devel
mailing list