Fix dokku ps <app> over ssh

Resolved the TTY error when connecting over ssh.
Updated ps to use has_tty function.
This commit is contained in:
Justin Clark
2015-08-25 17:35:28 -07:00
parent 09ee1def8f
commit e349d38581

View File

@@ -12,7 +12,8 @@ case "$1" in
! (is_deployed $APP) && echo "App $APP has not been deployed" && exit 0
for CID in $CONTAINER_IDS; do
docker exec -ti "$CID" /bin/sh -c "ps auxwww"
has_tty && DOKKU_RUN_OPTS="-i -t"
docker exec $DOKKU_RUN_OPTS $CID /bin/sh -c "ps auxwww"
done
;;