From fe6643b6e97af3fcbac151647dc897bd3cb15b94 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 4 Oct 2013 06:29:17 +0200 Subject: [PATCH] vzdump: remove temporary directories This bug was introduced with commit a107e264c997825a31904d2ffbed256161561b72 --- PVE/VZDump.pm | 2 +- PVE/VZDump/OpenVZ.pm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm index 05094223..77fd2116 100644 --- a/PVE/VZDump.pm +++ b/PVE/VZDump.pm @@ -971,7 +971,7 @@ sub exec_backup_task { eval { unlink $task->{tmptar} if $task->{tmptar} && -f $task->{tmptar}; }; warn $@ if $@; -# eval { rmtree $task->{tmpdir} if $task->{tmpdir} && -d $task->{tmpdir}; }; + eval { rmtree $task->{tmpdir} if $task->{tmpdir} && -d $task->{tmpdir}; }; warn $@ if $@; my $delay = $task->{backuptime} = time () - $vmstarttime; diff --git a/PVE/VZDump/OpenVZ.pm b/PVE/VZDump/OpenVZ.pm index 5b6c0bac..779c3a1d 100644 --- a/PVE/VZDump/OpenVZ.pm +++ b/PVE/VZDump/OpenVZ.pm @@ -303,8 +303,8 @@ sub cleanup { if ($task->{cleanup}->{etc_vzdump}) { my $dir = "$task->{snapdir}/etc/vzdump"; - #eval { rmtree $dir if -d $dir; }; - #$self->logerr ($@) if $@; + eval { rmtree $dir if -d $dir; }; + $self->logerr ($@) if $@; } }