Merge pull request #479 from linuxserver/universal-stdout-logs-s6v3

switch to hybrid (universal-stdout-logs)
This commit is contained in:
aptalca
2022-08-30 15:34:12 -04:00
committed by GitHub
6 changed files with 15 additions and 0 deletions
@@ -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
View File