Fix entrypoint init fail issue
This commit is contained in:
parent
e0b0ce653c
commit
0fa5f9fc13
1 changed files with 5 additions and 2 deletions
|
|
@ -9,8 +9,11 @@ if [[ $1 == init ]]; then
|
||||||
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
|
# Kill the other instance as only one can be running at a time.
|
||||||
pkill protonmail-bridge
|
# This allows users to run entrypoint init inside a running conainter
|
||||||
|
# which is useful in a k8s environment.
|
||||||
|
# || true to make sure this would not fail in case there is no running instance.
|
||||||
|
pkill protonmail-bridge || true
|
||||||
|
|
||||||
# Login
|
# Login
|
||||||
/protonmail/proton-bridge --cli $@
|
/protonmail/proton-bridge --cli $@
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue