vzdump: remove temporary directories

This bug was introduced with commit a107e264c9
This commit is contained in:
Dietmar Maurer 2013-10-04 06:29:17 +02:00
parent 5b1b792095
commit fe6643b6e9
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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 $@;
}
}