diff --git a/readme-vars.yml b/readme-vars.yml index 8f33c44..2c5d6a9 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -36,6 +36,7 @@ param_ports: param_usage_include_env: true param_env_vars: - { env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London, this is required for Sonarr"} + - { env_var: "UMASK_SET", env_value: "022", desc: "control permissions of files and directories created by Sonarr"} # application setup block app_setup_block_enabled: true diff --git a/root/etc/services.d/sonarr/run b/root/etc/services.d/sonarr/run index 1d2c786..442ae89 100644 --- a/root/etc/services.d/sonarr/run +++ b/root/etc/services.d/sonarr/run @@ -1,6 +1,8 @@ #!/usr/bin/with-contenv bash -umask 022 +UMASK_SET=${UMASK_SET:-022} + +umask "$UMASK_SET" cd /opt/NzbDrone || exit