Skip to content

Commit

Permalink
Added the missing UMASK section.
Browse files Browse the repository at this point in the history
See #272
  • Loading branch information
uhop committed Aug 20, 2024
1 parent a63cd60 commit 20cf81e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions root/etc/s6-overlay/s6-rc.d/init-transmission-config/run
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ if [[ -n "${PEERPORT}" ]]; then
sed -i '/peer-port-random-on-start/c\ "peer-port-random-on-start": false,' /config/settings.json
fi

if [[ -n "${UMASK}" ]]; then
sed -i "/\"umask\"/c\ \"umask\": ${UMASK}," /config/settings.json
fi

# Handle old theme locations
mkdir -p {/transmissionic,/combustion-release,/flood-for-transmission,/kettu,/transmission-web-control}
echo /transmissionic /combustion-release /flood-for-transmission /kettu /transmission-web-control | xargs -n1 ln -s /defaults/index.html
Expand Down

0 comments on commit 20cf81e

Please sign in to comment.