Test
This commit is contained in:
parent
a36d5aff67
commit
cde064ae21
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ source ~/.bashrc
|
||||||
|
|
||||||
# Import and trust the GPG key
|
# Import and trust the GPG key
|
||||||
echo ">>> Setting up user 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
|
echo -e "5\ny\n" | gpg --command-fd 0 --expert --edit-key albert@sysctl.io trust
|
||||||
|
|
||||||
# Setup SOPS
|
# Setup SOPS
|
||||||
|
|
|
@ -18,7 +18,7 @@ drive=$(lsblk -o serial,name | grep NGN130R000980P2202 | awk {'print $2'})
|
||||||
sudo mkdir -p /tmp/drive
|
sudo mkdir -p /tmp/drive
|
||||||
sudo cryptsetup luksOpen /dev/${drive}3 usb-luks
|
sudo cryptsetup luksOpen /dev/${drive}3 usb-luks
|
||||||
sudo mount /dev/mapper/usb-luks /tmp/drive
|
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 umount /tmp/drive
|
||||||
sudo rmdir /tmp/drive
|
sudo rmdir /tmp/drive
|
||||||
sudo cryptsetup luksClose /dev/mapper/usb-luks
|
sudo cryptsetup luksClose /dev/mapper/usb-luks
|
||||||
|
|
Loading…
Reference in a new issue