mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-26 10:12:46 -04:00
Add -c0 flag to prevent showing stale log entries in the log as the container starts
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
if [ -n "${LOGS_TO_STDOUT}" ]; then
|
||||
IFS='|' read -ra TAIL_LOGS <<< "$LOGS_TO_STDOUT"
|
||||
echo "Executing: tail -F ${TAIL_LOGS[@]}"
|
||||
tail -F "${TAIL_LOGS[@]}"
|
||||
echo "Executing: tail -Fc0 ${TAIL_LOGS[@]}"
|
||||
tail -Fc0 "${TAIL_LOGS[@]}"
|
||||
else
|
||||
echo "**** Env var LOGS_TO_STDOUT is not set, sleeping ****"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user