hacks/bin/unlock-syncpi-las2

11 lines
237 B
Plaintext
Raw Normal View History

2019-10-31 13:32:07 +00:00
#!/bin/bash
KEYFILE="$HOME/Documents/sync/secrets/luks/syncpi-las2.luks.txt.gpg"
if [[ ! -e "$KEYFILE" ]]; then
echo "wrong box!" >> /dev/stderr
exit 1
fi
gpg -d "$KEYFILE" | ssh root@syncpi-las2.tor "bash /root/unlock_disks"