From 680e82076e9313c94330bcccac745db07468854c Mon Sep 17 00:00:00 2001 From: Nilesh Date: Thu, 12 May 2022 11:31:03 -0700 Subject: [PATCH] Fix entrypoint so it works correctly on init Ran into this issue when trying to use in kubernetes via k8s-at-home/protonmail-bridge. Took a bit of figuring out before I realized I had to manually kill the other instance. The only output from the failed load is a dbus issue, and an immediate exit. --- build/entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/entrypoint.sh b/build/entrypoint.sh index 1cebda6..1a88ed3 100644 --- a/build/entrypoint.sh +++ b/build/entrypoint.sh @@ -8,6 +8,9 @@ if [[ $1 == init ]]; then # Initialize pass gpg --generate-key --batch /protonmail/gpgparams pass init pass-key + + # Kill the other instance as only one can be running at a time + pkill protonmail-bridge # Login /protonmail/proton-bridge --cli $@