Skip to content

Commit 409c4e2

Browse files
authored
Merge pull request #288 from uhop/master
Added the missing UMASK section.
2 parents 7016756 + 20cf81e commit 409c4e2

File tree

1 file changed

+4
-0
lines changed
  • root/etc/s6-overlay/s6-rc.d/init-transmission-config

1 file changed

+4
-0
lines changed

root/etc/s6-overlay/s6-rc.d/init-transmission-config/run

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ if [[ -n "${PEERPORT}" ]]; then
4141
sed -i '/peer-port-random-on-start/c\ "peer-port-random-on-start": false,' /config/settings.json
4242
fi
4343

44+
if [[ -n "${UMASK}" ]]; then
45+
sed -i "/\"umask\"/c\ \"umask\": ${UMASK}," /config/settings.json
46+
fi
47+
4448
# Handle old theme locations
4549
mkdir -p {/transmissionic,/combustion-release,/flood-for-transmission,/kettu,/transmission-web-control}
4650
echo /transmissionic /combustion-release /flood-for-transmission /kettu /transmission-web-control | xargs -n1 ln -s /defaults/index.html

0 commit comments

Comments
 (0)