Add variable for setting UMASK

This commit is contained in:
tobbenb 2019-08-06 23:08:25 +02:00 committed by Ryan Kuba
parent bfde6172e8
commit c6a7743691
3 changed files with 14 additions and 0 deletions

View file

@ -54,6 +54,7 @@ docker create \
-e PUID=1000 \
-e PGID=1000 \
-e VERSION=docker \
-e UMASK_SET=022 `#optional` \
-v </path/to/library>:/config \
-v <path/to/tvseries>:/data/tvshows \
-v </path/to/movies>:/data/movies \
@ -79,6 +80,7 @@ services:
- PUID=1000
- PGID=1000
- VERSION=docker
- UMASK_SET=022 #optional
volumes:
- </path/to/library>:/config
- <path/to/tvseries>:/data/tvshows
@ -97,6 +99,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 VERSION=docker` | Set whether to update plex or not - see Application Setup section. |
| `-e UMASK_SET=022` | control permissions of files and directories created by Plex |
| `-v /config` | Plex library location. *This can grow very large, 50gb+ is likely for a large collection.* |
| `-v /data/tvshows` | Media goes here. Add as many as needed e.g. `/data/movies`, `/data/tv`, etc. |
| `-v /data/movies` | Media goes here. Add as many as needed e.g. `/data/movies`, `/data/tv`, etc. |
@ -233,6 +236,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
## Versions
* **06.08.19:** - Add variable for setting UMASK.
* **10.07.19:** - Fix permissions for tuner (/dev/dvb) devices.
* **20.05.19:** - Bugfix do not allow Root group for Intel QuickSync ownership rules.
* **23.03.19:** - Switching to new Base images, shift to arm32v7 tag.

View file

@ -30,6 +30,10 @@ param_net_desc: "Use Host Networking"
param_usage_include_env: true
param_env_vars:
- { env_var: "VERSION", env_value: "docker", desc: "Set whether to update plex or not - see Application Setup section."}
# 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 Plex"}
optional_parameters: |
*Special note* - If you'd like to run Plex without requiring `--net=host` (`NOT recommended`) then you will need the following ports in your `docker create` command:
@ -82,6 +86,7 @@ app_setup_block: |
# changelog
changelogs:
- { date: "06.08.19:", desc: "Add variable for setting UMASK." }
- { date: "10.07.19:", desc: "Fix permissions for tuner (/dev/dvb) devices." }
- { date: "20.05.19:", desc: "Bugfix do not allow Root group for Intel QuickSync ownership rules." }
- { date: "23.03.19:", desc: "Switching to new Base images, shift to arm32v7 tag." }

View file

@ -1,5 +1,10 @@
#!/usr/bin/with-contenv bash
UMASK_SET=${UMASK_SET:-022}
umask "$UMASK_SET"
echo "Starting Plex Media Server."
export PLEX_MEDIA_SERVER_INFO_MODEL=$(uname -m)
export PLEX_MEDIA_SERVER_INFO_PLATFORM_VERSION=$(uname -r)