mirror of
https://github.com/shenxn/protonmail-bridge-docker.git
synced 2025-12-06 08:27:08 +00:00
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.
This commit is contained in:
parent
86e10823e0
commit
680e82076e
@ -8,6 +8,9 @@ if [[ $1 == init ]]; then
|
|||||||
# Initialize pass
|
# Initialize pass
|
||||||
gpg --generate-key --batch /protonmail/gpgparams
|
gpg --generate-key --batch /protonmail/gpgparams
|
||||||
pass init pass-key
|
pass init pass-key
|
||||||
|
|
||||||
|
# Kill the other instance as only one can be running at a time
|
||||||
|
pkill protonmail-bridge
|
||||||
|
|
||||||
# Login
|
# Login
|
||||||
/protonmail/proton-bridge --cli $@
|
/protonmail/proton-bridge --cli $@
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user