umask setting is not respected
I have the nzbget umask set to 0002, and also set an env var used in https://github.com/linuxserver/docker-nzbget to 002.
For some reason all completed downloads are getting 640 permissions. I want them to get 664. Any ideas?
Have you figured it out? Other than setting umask NZBGet doesn't do anything about permissions for downloaded or extracted files. Have you tried disabling option UMask in nzbget and setting umask before starting nzbget?
It seems to have worked correctly on the one download I have in there right now... Let me check a couple more downloads
In case anyone (@hugbug) sees this in the future - I think nzb file contents must support their own permissions, so the result just copies those perms. The nzbget umask just forces certain bits to be unset. What you really want is a post-processing script that sets the user/group/mode to whatever you want. I copied this one: https://gist.github.com/fryfrog/ee4a2a3a43a2a644e7c42e7f729664ca/ (note that you then have to set the options appropriately; it will add another category in the nzbget settings at the very bottom of the list)