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:
Alex Phillips
2021-12-17 10:57:17 -05:00
parent 6151754435
commit 858071c151
2 changed files with 2 additions and 2 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 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 -1
View File
@@ -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