little_fixes
This commit is contained in:
parent
01f304e3ec
commit
d96d93bdd8
1 changed files with 2 additions and 2 deletions
|
@ -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 <<EOF | lxd recover
|
|||
no
|
||||
yes
|
||||
yes
|
||||
EOF"
|
||||
EOF"; (($? != 0)) && { echo "SSH command lxd recover exited with non-zero"; exit 1; }
|
||||
fi
|
||||
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue