simpler gnupg config i think

This commit is contained in:
Jeffrey Paul 2018-10-01 17:09:27 -07:00
parent 5654476508
commit a72575eef4
Signed by: sneak
GPG Key ID: 052443F4DF2A55C2
1 changed files with 5 additions and 4 deletions

View File

@ -21,16 +21,17 @@ sleep 1 # prevent cpu spike on looping
export MIRROR_DIR=/var/lib/ubuntumirror
export IPFS_PATH=/var/lib/ipfs
export KEYID=790BC7277767219C42C86F933B4FE6ACC0B21F32
#export KEYID=790BC7277767219C42C86F933B4FE6ACC0B21F32
export GNUPGHOME=/etc/debmirror/ubuntu
mkdir -p $GNUPGHOME
chmod go-rwx $GNUPGHOME
gpg --import /usr/share/keyrings/ubuntu-archive-keyring.gpg
gpg --recv-key $KEYID
gpg --export $KEYID > $GNUPGHOME/trustedkeys.kbx
gpg --no-default-keyring --keyring $GNUPGHOME/trustedkeys.gpg --import /usr/share/keyrings/ubuntu-archive-keyring.gpg
#gpg --recv-key $KEYID
#gpg --export $KEYID > $GNUPGHOME/trustedkeys.kbx
chown -R ipfs:ipfs $GNUPGHOME