Fix umask - get umask from environment

Makes it consistent with other linuxserver.io images.
This commit is contained in:
Mateusz Furdyna
2019-06-13 00:30:30 +02:00
committed by Ryan Kuba
parent 6ab9f20607
commit 5456827b6b
2 changed files with 6 additions and 0 deletions

View File

@@ -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 Radarr"}
- { 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
@@ -44,6 +45,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." }

View File

@@ -1,5 +1,9 @@
#!/usr/bin/with-contenv bash
UMASK_SET=${UMASK_SET:-022}
umask "$UMASK_SET"
cd /opt/radarr || exit
exec \