Commit 145186ea authored by Chaoting Liu's avatar Chaoting Liu
Browse files

export only passphrase

parent 5cea1f6d
...@@ -26,7 +26,7 @@ _do ssh-add ~/.ssh/id_rsa ...@@ -26,7 +26,7 @@ _do ssh-add ~/.ssh/id_rsa
_log command "GPG setup" _log command "GPG setup"
# Configure gpg.conf # Configure gpg.conf
_do install -dm700 ~/.gnupg _do install -dm700 ~/.gnupg
_do echo "\npinentry-mode loopback\npassphrase $GPG_PASSWORD" >> ~/.gnupg/gpg.conf _do echo "\npassphrase $GPG_PASSWORD" >> ~/.gnupg/gpg.conf
_do gpg -v --batch --import <(echo "$GPG_PRIVATE_KEY") _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
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