hacks/bin/unlock-syncpi-bravo
2019-10-04 05:26:45 -07:00

11 lines
247 B
Bash
Executable File

#!/bin/bash
KEYFILE="$HOME/Documents/sync/secrets/luks/syncpi-las1-bravo.luks.gpg"
if [[ ! -e "$KEYFILE" ]]; then
echo "wrong box!" >> /dev/stderr
exit 1
fi
gpg -d "$KEYFILE" | ssh root@syncpi-las1-bravo.local "bash /root/unlock_disks"