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

add gpg config ruls after gpg.conf creation

parent 5e2e4088
...@@ -26,11 +26,11 @@ _do ssh-add ~/.ssh/id_rsa ...@@ -26,11 +26,11 @@ _do ssh-add ~/.ssh/id_rsa
# GPG setup # GPG setup
_log command "GPG setup" _log command "GPG setup"
# Configure gpg.conf # Configure gpg.conf
_do gpg -v --batch --import <(echo "$GPG_PRIVATE_KEY")
_do printf "keyserver-options auto-key-retrieve\n _do printf "keyserver-options auto-key-retrieve\n
auto-key-locate local,wkd\n auto-key-locate local,wkd\n
pinentry-mode loopback\n pinentry-mode loopback\n
passphrase $GPG_PASSWORD" >> ~/.gnupg/gpg.conf passphrase $GPG_PASSWORD" >> ~/.gnupg/gpg.conf
_do gpg -v --batch --import <(echo "$GPG_PRIVATE_KEY")
# Configure gpg-agent.conf # Configure gpg-agent.conf
_do echo "allow-loopback-pinentry" > ~/.gnupg/gpg-agent.conf _do echo "allow-loopback-pinentry" > ~/.gnupg/gpg-agent.conf
_do gpg-connect-agent reloadagent /bye _do gpg-connect-agent reloadagent /bye
......
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