changed delimiter to comma (more likely a space would be in a path), properly added in front of each file to tail

This commit is contained in:
Alex Phillips
2021-12-17 10:50:13 -05:00
parent eebc71a219
commit 6151754435
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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 space-delimited list of log files to include, such as `LOGS_TO_STDOUT="/config/logs/radarr.txt /config/logs/radarr.debug.txt"`
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.
+2
View File
@@ -1,3 +1,5 @@
#!/usr/bin/with-contenv bash
$TAIL_LOGS=$(echo $LOGS_TO_STDOUT | sed 's/,/ -f /g')
tail -f $LOGS_TO_STDOUT