From 95467063fac421838fd899c4573ce45a5fa2c39d Mon Sep 17 00:00:00 2001 From: root Date: Thu, 1 Sep 2022 17:22:13 +0200 Subject: [PATCH] little_fixes --- copy_containers | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copy_containers b/copy_containers index b1f5b92..0ae2d08 100755 --- a/copy_containers +++ b/copy_containers @@ -179,7 +179,7 @@ else if [ -z "$SNAP_TO_SEND_FIRST_FOR_LATER_CHECK" ] then echo "Setting up mountpoint on destination for "$CONT_VAR"" -target_snap_version=$(ssh "$DEST_IP" -p $DEST_PORT snap info lxd| grep tracking: | awk {'print $2'} | cut -d"/" -f-1 | cut -d"." -f-1) +target_snap_version=$(ssh "$DEST_IP" -p $DEST_PORT snap info lxd| grep tracking: | awk {'print $2'} | cut -d"/" -f-1 | cut -d"." -f-1); (($? != 0)) && { echo "SSH command to fill target_snap_version exited with non-zero"; exit 1; } if [[ "$target_snap_version" == 4 ]] then ssh "$DEST_IP" -p $DEST_PORT zfs set canmount=noauto "$DEST_ZPOOL"/lxd/storage/containers/"$CONT_VAR"; (($? != 0)) && { echo "SSH command to setup mountpoint on destination exited with non-zero"; exit 1; } @@ -203,7 +203,7 @@ ssh "$DEST_IP" -p $DEST_PORT "cat <