Fix umask - get umask from environment

Makes it consistent with other linuxserver.io images.
This commit is contained in:
SirFerdek
2019-06-16 15:31:11 -07:00
committed by Ryan Kuba
parent beb77124c4
commit dc592f2c1c
2 changed files with 4 additions and 1 deletions
+1
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 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
+3 -1
View File
@@ -1,6 +1,8 @@
#!/usr/bin/with-contenv bash
umask 022
UMASK_SET=${UMASK_SET:-022}
umask "$UMASK_SET"
cd /opt/NzbDrone || exit