From 2f753486eec3fd4da1770c56af6e487788b6f835 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Thu, 8 Aug 2019 03:27:00 -0700 Subject: [PATCH] add unlock script for another machine --- bin/unlock-syncpi-alpha | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bin/unlock-syncpi-alpha 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"