Add workaround for stale gpg-agent socket in entrypoint scripts
This commit is contained in:
parent
044ea2b034
commit
8d2e576fc2
2 changed files with 12 additions and 0 deletions
|
|
@ -2,6 +2,12 @@
|
|||
|
||||
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
|
||||
if [[ $1 == init ]]; then
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue