mirror of
https://github.com/shenxn/protonmail-bridge-docker.git
synced 2026-01-25 16:30:07 +00:00
Add workaround for stale gpg-agent socket in entrypoint scripts
This commit is contained in:
parent
044ea2b034
commit
8d2e576fc2
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user