mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-29 11:42:55 -04:00
pipe-delimited is already 'standard' for the mods themselves, use that. Very unlikely a log file or path will have a pipe in the name
This commit is contained in:
@@ -6,4 +6,4 @@ In any container docker arguments, set an environment variable `DOCKER_MODS=linu
|
||||
|
||||
If adding multiple mods, enter them in an array separated by `|`, such as `DOCKER_MODS=linuxserver/mods:universal-stdout-logging|linuxserver/mods:universal-mod2`
|
||||
|
||||
Simply set the environment variable `LOGS_TO_STDOUT` with a comman-delimited list of log files to include, such as `LOGS_TO_STDOUT="/config/logs/radarr.txt /config/logs/radarr.debug.txt"`. **NOTE**: If a comman exists in the path / filename of a log file, this will not work properly.
|
||||
Simply set the environment variable `LOGS_TO_STDOUT` with a pipe-delimited (`|`) list of log files to include, such as `LOGS_TO_STDOUT="/config/logs/radarr.txt /config/logs/radarr.debug.txt"`.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
$TAIL_LOGS=$(echo $LOGS_TO_STDOUT | sed 's/,/ -f /g')
|
||||
$TAIL_LOGS=$(echo $LOGS_TO_STDOUT | sed 's/|/ -f /g')
|
||||
|
||||
tail -f $LOGS_TO_STDOUT
|
||||
|
||||
Reference in New Issue
Block a user