-
-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added the missing UMASK section. #288
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for opening this pull request! Be sure to follow the pull request template!
I am a bot, here are the test results for this PR:
|
I am a bot, here are the test results for this PR:
|
I am a bot, here are the test results for this PR:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
im tentatively on board with this fix, i forgot about this issue, tbh. Howeever, i have some concerns about weird shit qnap/synology/unraid might do in terms of umask.. i don't think it should cause a problem, but I will ping the rest of the team to give thoughts before merge.
I am a bot, here are the test results for this PR:
|
Thanks for addressing this issue, I currently run a script that periodically chmod's stuff so I'm glad I'll soon be able to get rid of that :) |
Could you share your script? Thanks. |
My only thought here is I would recommend doing it via |
Sounds like a good idea, but take a look at the modified file: https://github.com/linuxserver/docker-transmission/blob/20cf81ec2e49fec458e140de6b32f0d733094c47/root/etc/s6-overlay/s6-rc.d/init-transmission-config/run It uses If you want to rewrite the whole file (and other files?) — please let me know. I would recommend retooling and reimplementation as a separate PR because it is the orthogonal thing not directly related to the bug. |
Fair point about the 16 uses of I believe the use of With all that said, looking at the if [[ condition ]]; then
do A
do B
else
do C
do B
fi Where
echo -E "$(jq -r --arg umask "${UMASK}" '.umask = $umask' settings.json)" > settings.json Unfortunately all of this will make your PR more complex. With that said, and now that I've typed it all out, I think accepting this PR as is makes the most sense, and opening a second PR to refactor the |
See #272
Description:
Trivial 3-line section to set
UMASK
tosettings.json
as per the current documentation.Benefits of this PR and context:
It fixes the filed bug, which clearly annoys people (including me).
How Has This Been Tested?
I ran it and saw the change in
/config/settings.json
.Source / References:
The existing doc:
docker-transmission/README.md
Line 177 in a63cd60
The bug: #272