sane-private-unlock-remote: add a timeout
This commit is contained in:
@@ -15,5 +15,5 @@ if [ -z "$passwd" ]; then
|
||||
fi
|
||||
|
||||
echo "attempting to mount private store on $host"
|
||||
echo "$passwd" | ssh "$host" 'if ! test -f /mnt/persist/private/init; then cat /dev/stdin > /run/gocryptfs/private.key; fi'
|
||||
echo "$passwd" | timeout 30 ssh "$host" 'if ! test -f /mnt/persist/private/init; then cat /dev/stdin > /run/gocryptfs/private.key; fi'
|
||||
echo "mount succeeded"
|
||||
|
Reference in New Issue
Block a user