Deprecate UMASK_SET in favor of UMASK in baseimage

pull/259/head
Roxedus 4 years ago
parent 8e8e2f9664
commit 9a6da3e400
No known key found for this signature in database
GPG Key ID: 9B4E311961C63639

@ -85,7 +85,6 @@ services:
- PUID=1000 - PUID=1000
- PGID=1000 - PGID=1000
- VERSION=docker - VERSION=docker
- UMASK_SET=022 #optional
- PLEX_CLAIM= #optional - PLEX_CLAIM= #optional
volumes: volumes:
- /path/to/library:/config - /path/to/library:/config
@ -103,7 +102,6 @@ docker run -d \
-e PUID=1000 \ -e PUID=1000 \
-e PGID=1000 \ -e PGID=1000 \
-e VERSION=docker \ -e VERSION=docker \
-e UMASK_SET=022 `#optional` \
-e PLEX_CLAIM= `#optional` \ -e PLEX_CLAIM= `#optional` \
-v /path/to/library:/config \ -v /path/to/library:/config \
-v /path/to/tvseries:/tv \ -v /path/to/tvseries:/tv \
@ -123,7 +121,6 @@ Container images are configured using parameters passed at runtime (such as thos
| `-e PUID=1000` | for UserID - see below for explanation | | `-e PUID=1000` | for UserID - see below for explanation |
| `-e PGID=1000` | for GroupID - 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 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 |
| `-e PLEX_CLAIM=` | Optionally you can obtain a claim token from https://plex.tv/claim and input here. Keep in mind that the claim tokens expire within 4 minutes. | | `-e PLEX_CLAIM=` | Optionally you can obtain a claim token from https://plex.tv/claim and input here. Keep in mind that the claim tokens expire within 4 minutes. |
| `-v /config` | Plex library location. *This can grow very large, 50gb+ is likely for a large collection.* | | `-v /config` | Plex library location. *This can grow very large, 50gb+ is likely for a large collection.* |
| `-v /tv` | Media goes here. Add as many as needed e.g. `/movies`, `/tv`, etc. | | `-v /tv` | Media goes here. Add as many as needed e.g. `/movies`, `/tv`, etc. |
@ -297,6 +294,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
## Versions ## Versions
* **20.01.21:** - Deprecate `UMASK_SET` in favor of UMASK in baseimage, see above for more information.
* **10.12.20:** - Add latest Intel Compute packages from github repo for opencl support on latest gen igpu. * **10.12.20:** - Add latest Intel Compute packages from github repo for opencl support on latest gen igpu.
* **23.11.20:** - Add Bionic branch make Focal default. * **23.11.20:** - Add Bionic branch make Focal default.
* **03.05.20:** - Update exposed ports and example docs for bridge mode. * **03.05.20:** - Update exposed ports and example docs for bridge mode.

@ -38,7 +38,6 @@ param_env_vars:
# optional env variables # optional env variables
opt_param_usage_include_env: true opt_param_usage_include_env: true
opt_param_env_vars: opt_param_env_vars:
- { env_var: "UMASK_SET", env_value: "022", desc: "control permissions of files and directories created by Plex"}
- { env_var: "PLEX_CLAIM", env_value: "", desc: "Optionally you can obtain a claim token from https://plex.tv/claim and input here. Keep in mind that the claim tokens expire within 4 minutes."} - { env_var: "PLEX_CLAIM", env_value: "", desc: "Optionally you can obtain a claim token from https://plex.tv/claim and input here. Keep in mind that the claim tokens expire within 4 minutes."}
optional_parameters: | optional_parameters: |
@ -106,6 +105,7 @@ app_setup_block: |
# changelog # changelog
changelogs: changelogs:
- { date: "20.01.21:", desc: "Deprecate `UMASK_SET` in favor of UMASK in baseimage, see above for more information." }
- { date: "10.12.20:", desc: "Add latest Intel Compute packages from github repo for opencl support on latest gen igpu." } - { date: "10.12.20:", desc: "Add latest Intel Compute packages from github repo for opencl support on latest gen igpu." }
- { date: "23.11.20:", desc: "Add Bionic branch make Focal default." } - { date: "23.11.20:", desc: "Add Bionic branch make Focal default." }
- { date: "03.05.20:", desc: "Update exposed ports and example docs for bridge mode." } - { date: "03.05.20:", desc: "Update exposed ports and example docs for bridge mode." }

@ -1,9 +1,10 @@
#!/usr/bin/with-contenv bash #!/usr/bin/with-contenv bash
UMASK_SET=${UMASK_SET:-022} if [ -n "${UMASK_SET}" ] && [ -z "${UMASK}" ]; then
echo -e "You are using a legacy method of defining umask\nplease update your environment variable from UMASK_SET to UMASK\nto keep the functionality after July 2021"
umask "$UMASK_SET" umask ${UMASK_SET}
fi
echo "Starting Plex Media Server." echo "Starting Plex Media Server."
export PLEX_MEDIA_SERVER_INFO_MODEL=$(uname -m) export PLEX_MEDIA_SERVER_INFO_MODEL=$(uname -m)

Loading…
Cancel
Save