mirror of
https://github.com/shenxn/protonmail-bridge-docker.git
synced 2025-12-06 00:17:10 +00:00
feat: add a 'debug' command
Signed-off-by: thiswillbeyourgithub <26625900+thiswillbeyourgithub@users.noreply.github.com>
This commit is contained in:
parent
e788a0098e
commit
06feba8008
@ -45,6 +45,12 @@ docker compose run protonmail-bridge init
|
||||
|
||||
Wait for the bridge to startup, then you will see a prompt appear for [Proton Mail Bridge interactive shell](https://proton.me/support/bridge-cli-guide). Use the `login` command and follow the instructions to add your account into the bridge. Then use `info` to see the configuration information (username and password). After that, use `exit` to exit the bridge. You may need `CTRL+C` to exit the docker entirely.
|
||||
|
||||
If you want to access the cli again later without initializing keys (for example to call `info` again), use this command:
|
||||
|
||||
```
|
||||
docker compose run protonmail-bridge debug
|
||||
```
|
||||
|
||||
## Run
|
||||
|
||||
To run the container, use the following command.
|
||||
|
||||
@ -4,6 +4,7 @@ set -ex
|
||||
|
||||
# Initialize
|
||||
if [[ $1 == init ]]; then
|
||||
echo "Entering 'init' mode"
|
||||
|
||||
# Initialize pass
|
||||
gpg --generate-key --batch /protonmail/gpgparams
|
||||
@ -18,7 +19,14 @@ if [[ $1 == init ]]; then
|
||||
# Login
|
||||
/protonmail/proton-bridge --cli $@
|
||||
|
||||
elif [[ $1 == debug ]]; then
|
||||
echo "Entering 'debug' mode"
|
||||
|
||||
# Debug mode - call CLI directly
|
||||
/protonmail/proton-bridge --cli
|
||||
|
||||
else
|
||||
echo "Entering 'default' mode"
|
||||
|
||||
# socat will make the conn appear to come from 127.0.0.1
|
||||
# ProtonMail Bridge currently expects that.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user