Skip to content

Commit

Permalink
add umask variable to allow metadata perms to be to user preference
Browse files Browse the repository at this point in the history
  • Loading branch information
sparklyballs authored and thelamer committed Aug 13, 2019
1 parent 1d88f7a commit d188431
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -66,4 +67,5 @@ app_setup_block: |
# changelog
changelogs:
- { date: "13.08.19:", desc: "Add umask environment variable." }
- { date: "30.05.19:", desc: "Initial release." }
4 changes: 4 additions & 0 deletions root/etc/services.d/emby/run
Original file line number Diff line number Diff line change
@@ -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}"
Expand Down

0 comments on commit d188431

Please sign in to comment.