Update file run_onchange_before_91-configure-gpg.tmpl
This commit is contained in:
parent
f8ea1dbcd3
commit
fd19e7d78b
1 changed files with 7 additions and 2 deletions
|
@ -26,8 +26,13 @@ if [ -n "$KEYID" ] && command -v gpg > /dev/null; then
|
||||||
logg info 'Retrying after turning on debug mode and using the standard DNS resolver'
|
logg info 'Retrying after turning on debug mode and using the standard DNS resolver'
|
||||||
sudo pkill dirmngr
|
sudo pkill dirmngr
|
||||||
dirmngr --debug-all --daemon --standard-resolver
|
dirmngr --debug-all --daemon --standard-resolver
|
||||||
gpg --keyserver hkps://pgp.mit.edu --recv "$KEYID"
|
gpg --keyserver hkps://pgp.mit.edu --recv "$KEYID" || EXIT_CODE=$?
|
||||||
gpgconf --kill dirmngr
|
if [ -n "$EXIT_CODE" ]; then
|
||||||
|
logg error 'Failed to retrieve public user GPG key on hkps://pgp.mit.edu'
|
||||||
|
gpgconf --kill dirmngr
|
||||||
|
else
|
||||||
|
logg success 'Successfully imported configured public user GPG key'
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
logg info 'Key is already in keyring'
|
logg info 'Key is already in keyring'
|
||||||
|
|
Loading…
Reference in a new issue