update disk unlock scripts

This commit is contained in:
2019-08-08 05:37:21 -07:00
parent 8869dd64fb
commit 8bc93b091d
3 changed files with 12 additions and 2 deletions

10
bin/unlock-syncpi-bravo Executable file
View File

@@ -0,0 +1,10 @@
#!/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.tor "bash /root/unlock_disks"