Add workaround for stale gpg-agent socket in entrypoint scripts

This commit is contained in:
Eric Trenkel 2026-01-17 08:52:08 +01:00
parent 044ea2b034
commit 8d2e576fc2
No known key found for this signature in database
2 changed files with 12 additions and 0 deletions

View File

@ -2,6 +2,12 @@
set -ex set -ex
# Workaround for stale gpg-agent socket causing auth failures on restart
# Cleans up leftover sockets in the GPG home directory
if [ -d /root/.gnupg ]; then
rm -f /root/.gnupg/S.gpg-agent*
fi
# Initialize # Initialize
if [[ $1 == init ]]; then if [[ $1 == init ]]; then

View File

@ -2,6 +2,12 @@
set -ex set -ex
# Workaround for stale gpg-agent socket causing auth failures on restart
# Cleans up leftover sockets in the GPG home directory
if [ -d /root/.gnupg ]; then
rm -f /root/.gnupg/S.gpg-agent*
fi
# Initialize # Initialize
if [[ $1 == init ]]; then if [[ $1 == init ]]; then