fix: write to /dev/stdout and set permissions

Signed-off-by: wilmardo <info@wilmardenouden.nl>
This commit is contained in:
wilmardo
2020-04-05 20:58:10 +02:00
parent 1bc73f1e78
commit 8b708738bf
2 changed files with 5 additions and 1 deletions

View File

@@ -61,7 +61,7 @@ if [[ "true" = "$DROP_DEFAULT_ROUTE" ]]; then
fi
if [[ "true" = "$DOCKER_LOG" ]]; then
LOGFILE=/proc/1/fd/1
LOGFILE=/dev/stdout
else
LOGFILE=${TRANSMISSION_HOME}/transmission.log
fi

View File

@@ -13,6 +13,10 @@ if [ -n "$PUID" ] && [ ! "$(id -u root)" -eq "$PUID" ]; then
groupmod -o -g "$PGID" ${RUN_AS};
fi
if [[ "true" = "$DOCKER_LOG" ]]; then
chown ${RUN_AS}:${RUN_AS} /dev/stdout
fi
# Make sure directories exist before chown and chmod
mkdir -p /config \
${TRANSMISSION_HOME} \