Skip to content

Commit c6a7743

Browse files
tobbenbthelamer
authored andcommitted
Add variable for setting UMASK
1 parent bfde617 commit c6a7743

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ docker create \
5454
-e PUID=1000 \
5555
-e PGID=1000 \
5656
-e VERSION=docker \
57+
-e UMASK_SET=022 `#optional` \
5758
-v </path/to/library>:/config \
5859
-v <path/to/tvseries>:/data/tvshows \
5960
-v </path/to/movies>:/data/movies \
@@ -79,6 +80,7 @@ services:
7980
- PUID=1000
8081
- PGID=1000
8182
- VERSION=docker
83+
- UMASK_SET=022 #optional
8284
volumes:
8385
- </path/to/library>:/config
8486
- <path/to/tvseries>:/data/tvshows
@@ -97,6 +99,7 @@ Container images are configured using parameters passed at runtime (such as thos
9799
| `-e PUID=1000` | for UserID - see below for explanation |
98100
| `-e PGID=1000` | for GroupID - see below for explanation |
99101
| `-e VERSION=docker` | Set whether to update plex or not - see Application Setup section. |
102+
| `-e UMASK_SET=022` | control permissions of files and directories created by Plex |
100103
| `-v /config` | Plex library location. *This can grow very large, 50gb+ is likely for a large collection.* |
101104
| `-v /data/tvshows` | Media goes here. Add as many as needed e.g. `/data/movies`, `/data/tv`, etc. |
102105
| `-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
233236

234237
## Versions
235238

239+
* **06.08.19:** - Add variable for setting UMASK.
236240
* **10.07.19:** - Fix permissions for tuner (/dev/dvb) devices.
237241
* **20.05.19:** - Bugfix do not allow Root group for Intel QuickSync ownership rules.
238242
* **23.03.19:** - Switching to new Base images, shift to arm32v7 tag.

readme-vars.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ param_net_desc: "Use Host Networking"
3030
param_usage_include_env: true
3131
param_env_vars:
3232
- { env_var: "VERSION", env_value: "docker", desc: "Set whether to update plex or not - see Application Setup section."}
33+
# optional env variables
34+
opt_param_usage_include_env: true
35+
opt_param_env_vars:
36+
- { env_var: "UMASK_SET", env_value: "022", desc: "control permissions of files and directories created by Plex"}
3337

3438
optional_parameters: |
3539
*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: |
8286
8387
# changelog
8488
changelogs:
89+
- { date: "06.08.19:", desc: "Add variable for setting UMASK." }
8590
- { date: "10.07.19:", desc: "Fix permissions for tuner (/dev/dvb) devices." }
8691
- { date: "20.05.19:", desc: "Bugfix do not allow Root group for Intel QuickSync ownership rules." }
8792
- { date: "23.03.19:", desc: "Switching to new Base images, shift to arm32v7 tag." }

root/etc/services.d/plex/run

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/usr/bin/with-contenv bash
22

3+
4+
UMASK_SET=${UMASK_SET:-022}
5+
6+
umask "$UMASK_SET"
7+
38
echo "Starting Plex Media Server."
49
export PLEX_MEDIA_SERVER_INFO_MODEL=$(uname -m)
510
export PLEX_MEDIA_SERVER_INFO_PLATFORM_VERSION=$(uname -r)

0 commit comments

Comments
 (0)