mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 16:58:27 -04:00
Merge pull request #479 from linuxserver/universal-stdout-logs-s6v3
switch to hybrid (universal-stdout-logs)
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
if [ -z "${LOGS_TO_STDOUT}" ]; then
|
||||||
|
exit 125
|
||||||
|
fi
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
if [ -n "${LOGS_TO_STDOUT}" ]; then
|
||||||
|
TAIL_LOGS=$(echo "$LOGS_TO_STDOUT" | sed 's#|# #g')
|
||||||
|
echo "Executing: tail -F $TAIL_LOGS"
|
||||||
|
tail -F $TAIL_LOGS
|
||||||
|
else
|
||||||
|
echo "**** Env var LOGS_TO_STDOUT is not set, sleeping ****"
|
||||||
|
fi
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
longrun
|
||||||
Regular → Executable
Reference in New Issue
Block a user