Deprecate UMASK_SET in favor of UMASK in baseimage
This commit is contained in:
@@ -84,7 +84,6 @@ services:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Europe/London
|
||||
- UMASK_SET=022
|
||||
- WEBUI_PORT=8080
|
||||
volumes:
|
||||
- </path/to/appdata/config>:/config
|
||||
@@ -104,7 +103,6 @@ docker run -d \
|
||||
-e PUID=1000 \
|
||||
-e PGID=1000 \
|
||||
-e TZ=Europe/London \
|
||||
-e UMASK_SET=022 \
|
||||
-e WEBUI_PORT=8080 \
|
||||
-p 6881:6881 \
|
||||
-p 6881:6881/udp \
|
||||
@@ -128,7 +126,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 TZ=Europe/London` | Specify a timezone to use EG Europe/London |
|
||||
| `-e UMASK_SET=022` | for umask setting of qbittorrent, optional , default if left unset is 022 |
|
||||
| `-e WEBUI_PORT=8080` | for changing the port of the webui, see below for explanation |
|
||||
| `-v /config` | Contains all relevant configuration files. |
|
||||
| `-v /downloads` | Location of downloads on disk. |
|
||||
@@ -262,6 +259,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.
|
||||
* **12.11.20:** - Stop creating /config/data directory on startup
|
||||
* **03.04.20:** - Fix adding search engine plugin
|
||||
* **02.08.19:** - Add qbitorrent-cli for processing scripts.
|
||||
|
||||
@@ -34,7 +34,6 @@ 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"}
|
||||
- { env_var: "UMASK_SET", env_value: "022", desc: "for umask setting of qbittorrent, optional , default if left unset is 022"}
|
||||
- { env_var: "WEBUI_PORT", env_value: "8080", desc: "for changing the port of the webui, see below for explanation"}
|
||||
|
||||
# optional parameters
|
||||
@@ -69,6 +68,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: "12.11.20:", desc: "Stop creating /config/data directory on startup" }
|
||||
- { date: "03.04.20:", desc: "Fix adding search engine plugin" }
|
||||
- { date: "02.08.19:", desc: "Add qbitorrent-cli for processing scripts." }
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
UMASK_SET=${UMASK_SET:-022}
|
||||
WEBUI_PORT=${WEBUI_PORT:-8080}
|
||||
|
||||
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
|
||||
|
||||
exec \
|
||||
s6-setuidgid abc /usr/bin/qbittorrent-nox --webui-port="${WEBUI_PORT}"
|
||||
|
||||
Reference in New Issue
Block a user