If passing -t for tail, use logs --follow else just get last 100 lines

This commit is contained in:
silasb committed 2014-02-25 21:23:01 -05:00
1 parent 75286cdfa1
commit 37f977a68d
1 file changed
+2 -1
+2 -1
View File
@@ -38,9 +38,10 @@ case "$1" in
if [[ -f "$DOKKU_ROOT/$APP/CONTAINER" ]]; then if [[ -f "$DOKKU_ROOT/$APP/CONTAINER" ]]; then
CONTAINER=$(<$DOKKU_ROOT/$APP/CONTAINER) CONTAINER=$(<$DOKKU_ROOT/$APP/CONTAINER)
docker logs $CONTAINER | tail -n 100
if [[ $3 == "-t" ]]; then if [[ $3 == "-t" ]]; then
docker logs --follow $CONTAINER docker logs --follow $CONTAINER
else
docker logs $CONTAINER | tail -n 100
fi fi
else else
echo "Application's container not found" echo "Application's container not found"