fix #1570: fix template backup with pigz

when using pigz the resulting commandline would look like:

pigz -p 4>file

which resulted in pigz erroring out because it got no parameter for -p
(because the shell interpreted the 4>file as a file descriptor)

this patch adds a space so that the resulting line is
pigz -p 4 > file

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Dominik Csapak 2017-12-01 11:43:23 +01:00 committed by Fabian Grünbichler
parent c449137a04
commit a2fab11a46

View File

@ -274,7 +274,7 @@ sub archive {
$outcmd = "exec:cat";
}
$outcmd .= ">$filename" if !$opts->{stdout};
$outcmd .= " > $filename" if !$opts->{stdout};
my $cmd = ['/usr/bin/vma', 'create', '-v', '-c', $conffile];
push @$cmd, '-c', $firewall if -e $firewall;