update disk unlock scripts

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

View File

@ -7,4 +7,4 @@ if [[ ! -e "$KEYFILE" ]]; then
exit 1
fi
gpg -d "$KEYFILE" | ssh root@las1.local "bash /root/unlock_disks"
gpg -d "$KEYFILE" | ssh root@las1.tor "bash /root/unlock_disks"

View File

@ -7,4 +7,4 @@ if [[ ! -e "$KEYFILE" ]]; then
exit 1
fi
gpg -d "$KEYFILE" | ssh root@syncpi-las1-alpha.local "bash /root/unlock_disks"
gpg -d "$KEYFILE" | ssh root@syncpi-las1-alpha.tor "bash /root/unlock_disks"

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"