add unlock script for another machine

This commit is contained in:
Jeffrey Paul 2019-08-08 03:27:00 -07:00
parent 5e59db5d72
commit 2f753486ee
1 changed files with 10 additions and 0 deletions

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

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