fix: write to /dev/stdout and set permissions
Signed-off-by: wilmardo <info@wilmardenouden.nl>
This commit is contained in:
@@ -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
|
||||
|
@@ -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} \
|
||||
|
Reference in New Issue
Block a user