From e5d6012736788043b08ed70463665679b3911938 Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Wed, 23 Mar 2022 15:16:19 +0100 Subject: remove old dirmngr socket. remember to execute only once with multiple connections. --- bin/ssh-with-gpg | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/ssh-with-gpg b/bin/ssh-with-gpg index 8e43d4d..aac1651 100755 --- a/bin/ssh-with-gpg +++ b/bin/ssh-with-gpg @@ -8,6 +8,7 @@ fi TGT="$1" REMUID="$(ssh "$TGT" "id -u")" +ssh "$TGT" 'rm -f /run/user/$(id -u)/gnupg/S.dirmngr' if [ -z "$REMUID" ];then printf "Cannot fetch user id from %b.\\n" "$TGT" >&2 exit 2 -- cgit v1.2.3