diff --git a/README.md b/README.md index 62b03e6..583bd4a 100644 --- a/README.md +++ b/README.md @@ -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"`. diff --git a/root/etc/services.d/stdout-logs/run b/root/etc/services.d/stdout-logs/run index f06cf8a..94a312c 100644 --- a/root/etc/services.d/stdout-logs/run +++ b/root/etc/services.d/stdout-logs/run @@ -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