mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
13 lines
231 B
Bash
Executable File
13 lines
231 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
if [ "${HAS_WEBSOCKET}" == "1" ]; then
|
|
set -- -x localhost "$@"
|
|
fi
|
|
|
|
if [ ! -z "${SSH_HOSTNAME}" ]; then
|
|
set -- -h "${SSH_HOSTNAME}" "$@"
|
|
fi
|
|
|
|
exec tmate-ssh-server -p ${SSH_PORT:-2200} -k ${SSH_KEYS_PATH} "$@"
|