From 8bc93b091d05d19d5621af9d9cb9686d428011a2 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Thu, 8 Aug 2019 05:37:21 -0700 Subject: [PATCH] update disk unlock scripts --- bin/unlock-las1 | 2 +- bin/unlock-syncpi-alpha | 2 +- bin/unlock-syncpi-bravo | 10 ++++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100755 bin/unlock-syncpi-bravo diff --git a/bin/unlock-las1 b/bin/unlock-las1 index 7b24bf0..803212d 100755 --- a/bin/unlock-las1 +++ b/bin/unlock-las1 @@ -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" diff --git a/bin/unlock-syncpi-alpha b/bin/unlock-syncpi-alpha index 276de66..783a097 100755 --- a/bin/unlock-syncpi-alpha +++ b/bin/unlock-syncpi-alpha @@ -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" diff --git a/bin/unlock-syncpi-bravo b/bin/unlock-syncpi-bravo new file mode 100755 index 0000000..5f3928d --- /dev/null +++ b/bin/unlock-syncpi-bravo @@ -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"