From 041d5cd05d1a248394799754ff939744ca8141ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Wed, 21 Feb 2018 09:45:38 +0100 Subject: [PATCH] Need to escape a backslash --- proxmox/vzdump-hook-lxc-jessie-template.pl | 2 +- proxmox/vzdump-hook-lxc-stretch-template.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/proxmox/vzdump-hook-lxc-jessie-template.pl b/proxmox/vzdump-hook-lxc-jessie-template.pl index b1d4d5f..9db66c0 100755 --- a/proxmox/vzdump-hook-lxc-jessie-template.pl +++ b/proxmox/vzdump-hook-lxc-jessie-template.pl @@ -66,7 +66,7 @@ if ($phase eq 'job-start' || # no die cause if the previous backup exit on tarfile copy, the link might not exist # Link last template file to a better name - system ("find $TEMPLATE_DIR -iname 'vzdump-lxc-$vmid*.tar.*' -mmin -60 -exec ln -s {} $TEMPLATE_DIR/$TEMPLATE_FILE_LINK \;") == 0 || + system ("find $TEMPLATE_DIR -iname 'vzdump-lxc-$vmid*.tar.*' -mmin -60 -exec ln -s {} $TEMPLATE_DIR/$TEMPLATE_FILE_LINK \\;") == 0 || die "link template to a better name failed"; # Ensure to remove template older than $RETENTION_TIME diff --git a/proxmox/vzdump-hook-lxc-stretch-template.pl b/proxmox/vzdump-hook-lxc-stretch-template.pl index 931790e..d984dae 100755 --- a/proxmox/vzdump-hook-lxc-stretch-template.pl +++ b/proxmox/vzdump-hook-lxc-stretch-template.pl @@ -66,7 +66,7 @@ if ($phase eq 'job-start' || # no die cause if the previous backup exit on tarfile copy, the link might not exist # Link last template file to a better name - system ("find $TEMPLATE_DIR -iname 'vzdump-lxc-$vmid*.tar.*' -mmin -60 -exec ln -s {} $TEMPLATE_DIR/$TEMPLATE_FILE_LINK \;") == 0 || + system ("find $TEMPLATE_DIR -iname 'vzdump-lxc-$vmid*.tar.*' -mmin -60 -exec ln -s {} $TEMPLATE_DIR/$TEMPLATE_FILE_LINK \\;") == 0 || die "link template to a better name failed"; # Ensure to remove template older than $RETENTION_TIME