update disk unlock scripts
This commit is contained in:
parent
8869dd64fb
commit
8bc93b091d
@ -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"
|
||||
|
@ -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
10
bin/unlock-syncpi-bravo
Executable 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"
|
Loading…
Reference in New Issue
Block a user