Make the bridge run inside tmux to allow for easy user interaction within the container
This commit is contained in:
parent
97014ae98c
commit
c9bec759ba
2 changed files with 12 additions and 3 deletions
|
|
@ -16,7 +16,11 @@ if [[ $1 == init ]]; then
|
|||
pkill protonmail-bridge || true
|
||||
|
||||
# Login
|
||||
/protonmail/proton-bridge --cli $@
|
||||
tmux new-session -d -s bridge-init "/protonmail/proton-bridge --cli $@"
|
||||
echo "ProtonMail Bridge init running inside tmux session 'bridge-init'"
|
||||
echo "Attach with: docker exec -it <container> tmux attach -t bridge-init"
|
||||
|
||||
sleep infinity
|
||||
|
||||
else
|
||||
|
||||
|
|
@ -30,6 +34,11 @@ else
|
|||
# Fake a terminal, so it does not quit because of EOF...
|
||||
rm -f faketty
|
||||
mkfifo faketty
|
||||
cat faketty | /protonmail/proton-bridge --cli $@
|
||||
|
||||
tmux new-session -d -s bridge "cat faketty | /protonmail/proton-bridge --cli $@"
|
||||
echo "ProtonMail Bridge running inside tmux session 'bridge'"
|
||||
echo "Attach with: docker exec -it <container> tmux attach -t bridge"
|
||||
|
||||
sleep infinity
|
||||
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue