Commit d79ff010 authored by Chaoting Liu's avatar Chaoting Liu
Browse files

use gnupghome var

parent 89e5e1c5
......@@ -25,11 +25,11 @@ _do ssh-add ~/.ssh/id_rsa
# GPG setup
_log command "GPG setup"
# Configure gpg.conf
_do install -dm700 ~/.gnupg
_do echo "\n--keyserver-options auto-key-retrieve
--auto-key-locate local,wkd
--pinentry-mode loopback
--passphrase $GPG_PASSWORD" >> ~/.gnupg/gpg.conf
_do install -dm700 $GNUPGHOME/.gnupg
echo "\nkeyserver-options auto-key-retrieve
auto-key-locate local,wkd
pinentry-mode loopback
passphrase $GPG_PASSWORD" >> $GNUPGHOME/gpg.conf
_do gpg -v --batch --import <(echo "$GPG_PRIVATE_KEY")
# Configure gpg-agent.conf
_do echo "allow-loopback-pinentry" > ~/.gnupg/gpg-agent.conf
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment