1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00
tmate-ssh-server/docker-entrypoint.sh
2019-08-11 00:54:56 -04:00

13 lines
206 B
Bash
Executable File

#!/bin/sh
set -e
if [ "${USE_PROXY}" == "1" ]; then
set -- -x localhost "$@"
fi
if [ ! -z "${HOSTNAME}" ]; then
set -- -h "${HOSTNAME}" "$@"
fi
exec tmate-ssh-server -p 2200 -k ${SSH_KEYS_PATH} "$@"