diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2017-01-31 21:22:57 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2017-01-31 21:22:57 +0000 |
commit | 513172c486a4fb9ab011ec5fc3fe3a538f9aeb03 (patch) | |
tree | b81014ba8cad6c98eeee68e04eff931653284f3b /start-container-none.sh | |
parent | b3a5ec886f9048ce6f0bb66a450eefcba3e79724 (diff) |
start-container-*.sh: Add .tcwglab suffix.
Change-Id: I036b6baa0ab62586a366df07f7f7b75e1904dad0
Diffstat (limited to 'start-container-none.sh')
-rwxr-xr-x | start-container-none.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/start-container-none.sh b/start-container-none.sh index 7ebc2365..9add7459 100755 --- a/start-container-none.sh +++ b/start-container-none.sh @@ -22,8 +22,11 @@ if [ $# -ne 2 -a $# -ne 3 ]; then exit 1 fi +session_host=$3 + if [ x"$DOCKER_HOST" = x"" ]; then - session_host="$(hostname).tcwglab" + [ x"$session_host" = x ] && session_host=localhost + session_host=${session_host}.tcwglab session_port="22" else session_host="$(echo $DOCKER_HOST | sed -e "s#^tcp://\(.*\):.*#\1#")" |