Skip to content

Commit

Permalink
upload-photos: Check if /srv/samba is a mountpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
cdown committed Apr 20, 2024
1 parent 9f5a99f commit 99ce077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/upload-photos
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ else
"$limit_cmd copy-photos-to-ext '$escaped_photo_dir'; echo Done; read"
else
tmux new-session -d -s "$session_name" \
"$limit_cmd rsync -e 'ssh -T -c chacha20-poly1305@openssh.com -o Compression=no -x' --size-only -rvP --mkpath . $host:'/srv/samba/Photos/$escaped_photo_dir'; echo Done; read"
"$limit_cmd ssh $host mountpoint /srv/samba && rsync -e 'ssh -T -c chacha20-poly1305@openssh.com -o Compression=no -x' --size-only -rvP --mkpath . $host:'/srv/samba/Photos/$escaped_photo_dir'; echo Done; read"
fi
fi

Expand Down

0 comments on commit 99ce077

Please sign in to comment.