added check for .luks-device

This commit is contained in:
Anton Lydike 2022-05-14 12:13:59 +02:00
parent 89f912299c
commit 6d176ee718

View File

@ -18,7 +18,7 @@ set_color -o green
echo "Mounting luks container..."
set_color normal
ssh $SSH_OPT -t -i $KEY $USER@$REMOTE "
if [ -d $REMOTE_PATH ]
if [ -d $REMOTE_PATH -a -f .luks-device ]
set_color -o green; echo \"backup already mounted!\"
set_color normal
exit