little_fixes
This commit is contained in:
parent
6bc63929c4
commit
95467063fa
1 changed files with 2 additions and 2 deletions
|
@ -179,7 +179,7 @@ else
|
||||||
if [ -z "$SNAP_TO_SEND_FIRST_FOR_LATER_CHECK" ]
|
if [ -z "$SNAP_TO_SEND_FIRST_FOR_LATER_CHECK" ]
|
||||||
then
|
then
|
||||||
echo "Setting up mountpoint on destination for "$CONT_VAR""
|
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 ]]
|
if [[ "$target_snap_version" == 4 ]]
|
||||||
then
|
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; }
|
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
|
no
|
||||||
yes
|
yes
|
||||||
yes
|
yes
|
||||||
EOF"
|
EOF"; (($? != 0)) && { echo "SSH command lxd recover exited with non-zero"; exit 1; }
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue