diff --git a/home/.chezmoiscripts/universal/run_onchange_before_91-configure-gpg.tmpl b/home/.chezmoiscripts/universal/run_onchange_before_91-configure-gpg.tmpl index ceb36820..2cea23b9 100644 --- a/home/.chezmoiscripts/universal/run_onchange_before_91-configure-gpg.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_before_91-configure-gpg.tmpl @@ -27,6 +27,7 @@ if [ -n "$KEYID" ] && command -v gpg > /dev/null; then sudo pkill dirmngr dirmngr --debug-all --daemon --standard-resolver gpg --keyserver hkps://pgp.mit.edu --recv "$KEYID" + gpgconf --kill dirmngr fi else logg info 'Key is already in keyring'