Skip to content

Commit

Permalink
Merge pull request #288 from uhop/master
Browse files Browse the repository at this point in the history
Added the missing UMASK section.
  • Loading branch information
drizuid authored Nov 13, 2024
2 parents 7016756 + 20cf81e commit 409c4e2
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 409c4e2

Please sign in to comment.