mirror of
https://github.com/casjaysdevdocker/aria2
synced 2025-05-14 08:11:23 -04:00
🗃️ Committing everything that changed 🗃️
rootfs/usr/local/bin/entrypoint.sh
This commit is contained in:
parent
1a9d779ebe
commit
9335999df1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user