Fixed GPG-Agent having wrong options and erroring out if agent is not running instead of starting it
This commit is contained in:
parent
ef2487a9e0
commit
8d40aa6e63
@ -1,11 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ $(pgrep gpg-agent) != 0 ]; then
|
rc=$(pgrep gpg-agent)
|
||||||
|
if [ "$rc" != 0 ]; then
|
||||||
export GPG_AGENT_INFO
|
export GPG_AGENT_INFO
|
||||||
export SSH_AUTH_SOCK
|
export SSH_AUTH_SOCK
|
||||||
export SSH_AGENT_PID
|
export SSH_AGENT_PID
|
||||||
else
|
else
|
||||||
eval $(gpg-agent --daemon ~/.gpg-agent-info)
|
eval $(gpg-agent --daemon)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
gpg-connect-agent /bye
|
gpg-connect-agent /bye
|
||||||
|
@ -2,8 +2,6 @@ default-cache-ttl 300
|
|||||||
default-cache-ttl-ssh 300
|
default-cache-ttl-ssh 300
|
||||||
max-cache-ttl 300
|
max-cache-ttl 300
|
||||||
max-cache-ttl-ssh 300
|
max-cache-ttl-ssh 300
|
||||||
|
|
||||||
ingore-cache-for-signing
|
|
||||||
no-allow-external-cache
|
no-allow-external-cache
|
||||||
|
|
||||||
enable-ssh-support
|
enable-ssh-support
|
||||||
|
ignore-cache-for-signing
|
||||||
|
Loading…
Reference in New Issue
Block a user