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