mirror of
https://github.com/linuxserver/docker-radarr.git
synced 2026-02-05 12:17:09 +08:00
Fix umask - get umask from environment
Makes it consistent with other linuxserver.io images.
This commit is contained in:
parent
cc33298c07
commit
c5b1a7fa19
@ -54,6 +54,7 @@ docker create \
|
||||
-e PUID=1000 \
|
||||
-e PGID=1000 \
|
||||
-e TZ=Europe/London \
|
||||
-e UMASK_SET=022 `#optional` \
|
||||
-p 7878:7878 \
|
||||
-v <path to data>:/config \
|
||||
-v <path/to/movies>:/movies \
|
||||
@ -86,6 +87,7 @@ services:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Europe/London
|
||||
- UMASK_SET=022 #optional
|
||||
volumes:
|
||||
- <path to data>:/config
|
||||
- <path/to/movies>:/movies
|
||||
@ -105,6 +107,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 TZ=Europe/London` | Specify a timezone to use EG Europe/London, this is required for Radarr |
|
||||
| `-e UMASK_SET=022` | control permissions of files and directories created by Radarr |
|
||||
| `-v /config` | Database and Radarr configs |
|
||||
| `-v /movies` | Location of Movie library on disk |
|
||||
| `-v /downloads` | Location of download managers output directory |
|
||||
@ -191,6 +194,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
||||
|
||||
## Versions
|
||||
|
||||
* **13.06.19:** - Add env variable for setting umask.
|
||||
* **10.05.19:** - Rebase to Bionic.
|
||||
* **23.03.19:** - Switching to new Base images, shift to arm32v7 tag.
|
||||
* **09.09.18:** - Add pipeline build process.
|
||||
|
||||
@ -40,6 +40,10 @@ 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, this is required for Radarr"}
|
||||
# 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 Radarr"}
|
||||
|
||||
# application setup block
|
||||
app_setup_block_enabled: true
|
||||
@ -48,6 +52,7 @@ app_setup_block: |
|
||||
|
||||
# changelog
|
||||
changelogs:
|
||||
- { date: "13.06.19:", desc: "Add env variable for setting umask." }
|
||||
- { date: "10.05.19:", desc: "Rebase to Bionic." }
|
||||
- { date: "23.03.19:", desc: "Switching to new Base images, shift to arm32v7 tag." }
|
||||
- { date: "09.09.18:", desc: "Add pipeline build process." }
|
||||
|
||||
@ -1,5 +1,9 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
UMASK_SET=${UMASK_SET:-022}
|
||||
|
||||
umask "$UMASK_SET"
|
||||
|
||||
cd /opt/radarr || exit
|
||||
|
||||
exec \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user