Skip to content

Commit

Permalink
fix: write to /dev/stdout and set permissions
Browse files Browse the repository at this point in the history
Signed-off-by: wilmardo <[email protected]>
  • Loading branch information
wilmardo committed Apr 5, 2020
1 parent 1bc73f1 commit 8b70873
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion transmission/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions transmission/userSetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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} \
Expand Down

0 comments on commit 8b70873

Please sign in to comment.