Merge pull request #1 from shenxn/master

Update from shenxn/protonmail-bridge-docker
This commit is contained in:
Thibault Godouet 2022-12-03 16:26:24 +00:00 committed by GitHub
commit 298bacbd6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 28 additions and 11 deletions

View file

@ -13,6 +13,12 @@ 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.
# 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
/protonmail/proton-bridge --cli $@