diff --git a/README.md b/README.md index e5cdf36..21fe1eb 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,7 @@ docker create \ -e PUID=1000 \ -e PGID=1000 \ -e TZ=Europe/London \ + -e UMASK_SET=022 `#optional` \ -p 7878:7878 \ -v :/config \ -v :/movies \ @@ -86,6 +87,7 @@ services: - PUID=1000 - PGID=1000 - TZ=Europe/London + - UMASK_SET=022 #optional volumes: - :/config - :/movies @@ -105,6 +107,7 @@ Container images are configured using parameters passed at runtime (such as thos | `-e PUID=1000` | for UserID - see below for explanation | | `-e PGID=1000` | for GroupID - see below for explanation | | `-e TZ=Europe/London` | Specify a timezone to use EG Europe/London, this is required for Radarr | +| `-e UMASK_SET=022` | control permissions of files and directories created by Radarr | | `-v /config` | Database and Radarr configs | | `-v /movies` | Location of Movie library on disk | | `-v /downloads` | Location of download managers output directory | @@ -191,6 +194,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **13.06.19:** - Add env variable for setting umask. * **10.05.19:** - Rebase to Bionic. * **23.03.19:** - Switching to new Base images, shift to arm32v7 tag. * **09.09.18:** - Add pipeline build process. diff --git a/readme-vars.yml b/readme-vars.yml index f7ec85d..be42074 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -40,6 +40,10 @@ 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 Radarr"} +# optional env variables +opt_param_usage_include_env: true +opt_param_env_vars: + - { env_var: "UMASK_SET", env_value: "022", desc: "control permissions of files and directories created by Radarr"} # application setup block app_setup_block_enabled: true @@ -48,6 +52,7 @@ app_setup_block: | # changelog changelogs: + - { date: "13.06.19:", desc: "Add env variable for setting umask." } - { date: "10.05.19:", desc: "Rebase to Bionic." } - { date: "23.03.19:", desc: "Switching to new Base images, shift to arm32v7 tag." } - { date: "09.09.18:", desc: "Add pipeline build process." } diff --git a/root/etc/services.d/radarr/run b/root/etc/services.d/radarr/run index 3867e15..7214523 100644 --- a/root/etc/services.d/radarr/run +++ b/root/etc/services.d/radarr/run @@ -1,5 +1,9 @@ #!/usr/bin/with-contenv bash +UMASK_SET=${UMASK_SET:-022} + +umask "$UMASK_SET" + cd /opt/radarr || exit exec \