Skip to content

Commit

Permalink
core: start-companion-core: Add and use user_terminal tmux session fo…
Browse files Browse the repository at this point in the history
…r ttyd

Use a single tmux session for the user

Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Oct 28, 2021
1 parent 81427ab commit 0a55b7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/start-companion-core
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ SERVICES=(
'filebrowser',"filebrowser --database /etc/filebrowser/filebrowser.db --baseurl /file-browser"
'versionchooser',"$SERVICES_PATH/versionchooser/main.py"
'ping',"$SERVICES_PATH/ping/main.py"
'ttyd',"ttyd -p 8088 /usr/bin/tmux new-session \\\\; send-keys 'cat /etc/motd' C-m \\\\;"
'user_terminal',"cat /etc/motd"
'ttyd',"ttyd -p 8088 /usr/bin/tmux attach -t user_terminal"
'nginx',"nice --18 nginx -g \"daemon off;\" -c $TOOLS_PATH/nginx/nginx.conf"
)

Expand Down

0 comments on commit 0a55b7b

Please sign in to comment.