diff --git a/bin/unlock-syncpi-alpha b/bin/unlock-syncpi-alpha new file mode 100755 index 0000000..276de66 --- /dev/null +++ b/bin/unlock-syncpi-alpha @@ -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"