mirror of
https://github.com/linuxserver/docker-plex.git
synced 2026-02-19 20:03:03 +08:00
Deprecate UMASK_SET in favor of UMASK in baseimage
This commit is contained in:
parent
347a7f08e2
commit
ef69e6d952
@ -85,7 +85,6 @@ services:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- VERSION=docker
|
||||
- UMASK_SET=022 #optional
|
||||
- PLEX_CLAIM= #optional
|
||||
volumes:
|
||||
- /path/to/library:/config
|
||||
@ -103,7 +102,6 @@ docker run -d \
|
||||
-e PUID=1000 \
|
||||
-e PGID=1000 \
|
||||
-e VERSION=docker \
|
||||
-e UMASK_SET=022 `#optional` \
|
||||
-e PLEX_CLAIM= `#optional` \
|
||||
-v /path/to/library:/config \
|
||||
-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 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 |
|
||||
| `-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 /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
|
||||
|
||||
* **20.01.21:** - Deprecate `UMASK_SET` in favor of UMASK in baseimage, see above for more information.
|
||||
* **23.11.20:** - Add Bionic branch make Focal default.
|
||||
* **03.05.20:** - Update exposed ports and example docs for bridge mode.
|
||||
* **23.03.20:** - Remove udev hack (no longer needed), suppress uuid error in log during first start.
|
||||
|
||||
@ -38,7 +38,6 @@ param_env_vars:
|
||||
# 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"}
|
||||
- { 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: |
|
||||
@ -106,6 +105,7 @@ app_setup_block: |
|
||||
|
||||
# changelog
|
||||
changelogs:
|
||||
- { date: "20.01.21:", desc: "Deprecate `UMASK_SET` in favor of UMASK in baseimage, see above for more information." }
|
||||
- { 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: "23.03.20:", desc: "Remove udev hack (no longer needed), suppress uuid error in log during first start." }
|
||||
|
||||
@ -1,9 +1,10 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
|
||||
UMASK_SET=${UMASK_SET:-022}
|
||||
|
||||
umask "$UMASK_SET"
|
||||
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}
|
||||
fi
|
||||
|
||||
echo "Starting Plex Media Server."
|
||||
export PLEX_MEDIA_SERVER_INFO_MODEL=$(uname -m)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user