add umask variable to allow metadata perms to be to user preference

This commit is contained in:
sparklyballs
2019-08-13 14:32:01 +01:00
committed by Ryan Kuba
parent e0f2443916
commit af8d963ae1
2 changed files with 6 additions and 0 deletions

View File

@@ -33,6 +33,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"}
- { env_var: "UMASK_SET", env_value: "<022>", desc: "for umask setting of emby, *optional* , default if left unset is 022."}
# optional container parameters
opt_param_usage_include_vols: true
opt_param_volumes:
@@ -66,5 +67,6 @@ app_setup_block: |
# changelog
changelogs:
- { date: "13.08.19:", desc: "Add umask environment variable." }
- { date: "24.06.19:", desc: "Fix typos in readme." }
- { date: "30.05.19:", desc: "Initial release." }

View File

@@ -1,5 +1,9 @@
#!/usr/bin/with-contenv bash
# set umask
UMASK_SET=${UMASK_SET:-022}
umask "$UMASK_SET"
# env settings
APP_DIR="/app/emby"
export LD_LIBRARY_PATH="${APP_DIR}"