* [pve-devel] [PATCH container] fix #3275: remove old FW config when restoring
@ 2021-01-28 8:25 Fabian Grünbichler
2021-01-28 9:29 ` [pve-devel] applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Fabian Grünbichler @ 2021-01-28 8:25 UTC (permalink / raw)
To: pve-devel
otherwise proxmox-backup-client will error and the whole restore will
fail.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [pve-devel] applied: [PATCH container] fix #3275: remove old FW config when restoring
2021-01-28 8:25 [pve-devel] [PATCH container] fix #3275: remove old FW config when restoring Fabian Grünbichler
@ 2021-01-28 9:29 ` Thomas Lamprecht
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2021-01-28 9:29 UTC (permalink / raw)
To: Proxmox VE development discussion, Fabian Grünbichler
On 28.01.21 09:25, Fabian Grünbichler wrote:
> otherwise proxmox-backup-client will error and the whole restore will
> fail.
>
> Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
> ---
> src/PVE/LXC/Create.pm | 1 +
> 1 file changed, 1 insertion(+)
>
>
applied, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-28 9:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-28 8:25 [pve-devel] [PATCH container] fix #3275: remove old FW config when restoring Fabian Grünbichler
2021-01-28 9:29 ` [pve-devel] applied: " Thomas Lamprecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox