mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-30 03:53:18 -04:00
dedfeaca08
I appreciate this mod for keeping an eye on nginx logs and such. The lsio/swag rotates those log files daily, and unfortunately that causes this mod to stop working. I propose using tail's `-F` (a shortcut for `--follow=name --retry`) instead of `-f` so that this mod will continue tailing the newly-rotated log file.
7 lines
142 B
Plaintext
7 lines
142 B
Plaintext
#!/usr/bin/with-contenv bash
|
|
|
|
TAIL_LOGS=$(echo "$LOGS_TO_STDOUT" | sed 's#|# -f #g')
|
|
|
|
echo "Executing: tail -F $TAIL_LOGS"
|
|
tail -F $TAIL_LOGS
|