From 9335999df1e72c08eec476e88c91cbb52d9098b1 Mon Sep 17 00:00:00 2001 From: casjay Date: Tue, 13 May 2025 18:09:41 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rootfs/usr/local/bin/entrypoint.sh --- rootfs/usr/local/bin/entrypoint.sh | 33 ++++++++++++++++++------------ 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/rootfs/usr/local/bin/entrypoint.sh b/rootfs/usr/local/bin/entrypoint.sh index 5e5a61b..d7148e8 100755 --- a/rootfs/usr/local/bin/entrypoint.sh +++ b/rootfs/usr/local/bin/entrypoint.sh @@ -51,10 +51,29 @@ case "$1" in -h | --help) shift 1 echo 'Docker container for '$CONTAINER_NAME'' - echo "Usage: $CONTAINER_NAME [cron exec start init shell certbot ssl procs ports healthcheck backup command]" + echo "Usage: $CONTAINER_NAME [help tail cron exec start init shell certbot ssl procs ports healthcheck backup command]" echo "" exit 0 ;; +tail) + shift 1 + case "$1" in + null) + shift $# + tail -f "/dev/null" + ;; + app) + shift $# + tail -f /data/logs/*/*.log + ;; + -*) + tail "$@" + ;; + *) + tail -f "${@:-/dev/null}" + ;; + esac + ;; -*) shift ;; @@ -411,18 +430,6 @@ init) echo "Container has been Initialized" exit 0 ;; -tail) - shift 1 - case "$1" in - app) - shift 1 - tail -f /data/logs/*/*.log - ;; - *) - tail -f "${@:-/dev/null}" - ;; - esac - ;; logs) shift 1 case "$1" in