From cde064ae21520946b4be09342b11f7a52549743f Mon Sep 17 00:00:00 2001 From: albert Date: Wed, 1 May 2024 21:12:51 +0900 Subject: [PATCH] Test --- docs/setup-no-usb.sh | 2 +- docs/setup.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/setup-no-usb.sh b/docs/setup-no-usb.sh index 60ff20cc..324d03cd 100755 --- a/docs/setup-no-usb.sh +++ b/docs/setup-no-usb.sh @@ -14,7 +14,7 @@ source ~/.bashrc # Import and trust the GPG key echo ">>> Setting up user GPG key..... " -gpg --import ~/privkey.asc +gpg --import ~/keys.pgp echo -e "5\ny\n" | gpg --command-fd 0 --expert --edit-key albert@sysctl.io trust # Setup SOPS diff --git a/docs/setup.sh b/docs/setup.sh index e951a859..1874a2e1 100755 --- a/docs/setup.sh +++ b/docs/setup.sh @@ -18,7 +18,7 @@ drive=$(lsblk -o serial,name | grep NGN130R000980P2202 | awk {'print $2'}) sudo mkdir -p /tmp/drive sudo cryptsetup luksOpen /dev/${drive}3 usb-luks sudo mount /dev/mapper/usb-luks /tmp/drive -gpg --import /tmp/drive/gpg/albert@sysctl.io/privkey.asc +gpg --import /tmp/drive/gpg/albert@sysctl.io/keys.pgp sudo umount /tmp/drive sudo rmdir /tmp/drive sudo cryptsetup luksClose /dev/mapper/usb-luks