From d701c99c72d4386979c7336020d725d7a687e911 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guitaut?= Date: Mon, 30 Mar 2015 11:50:38 +0200 Subject: [PATCH] TTY option for SSH MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When using commands requiring a TTY (such as Rails console), this script won’t work. So enabling a TTY resolves the issue. --- contrib/dokku_client.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/dokku_client.sh b/contrib/dokku_client.sh index 27f75148b..9b7dce327 100755 --- a/contrib/dokku_client.sh +++ b/contrib/dokku_client.sh @@ -94,7 +94,7 @@ if [[ ! -z $DOKKU_HOST ]]; then fi if [[ -z "$donotshift" ]]; then - ssh "dokku@$DOKKU_HOST" "$@" + ssh -t "dokku@$DOKKU_HOST" "$@" exit $? fi @@ -116,7 +116,7 @@ if [[ ! -z $DOKKU_HOST ]]; then fi fi # shellcheck disable=SC2086 - ssh "dokku@$DOKKU_HOST" $long_args "$verb" "$appname" "${args[@]}" + ssh -t "dokku@$DOKKU_HOST" $long_args "$verb" "$appname" "${args[@]}" } if [[ "$0" == "dokku" ]] || [[ "$0" == *dokku_client.sh ]]; then