From 2b00f83793a918ea5f450dceccc0351f650d4713 Mon Sep 17 00:00:00 2001 From: Roxedus Date: Wed, 20 Jan 2021 13:19:04 +0100 Subject: [PATCH] Deprecate UMASK_SET in favor of UMASK in baseimage --- README.md | 4 +--- readme-vars.yml | 2 +- root/etc/services.d/qbittorrent/run | 6 ++++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index eab0020..8e8665e 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,6 @@ services: - PUID=1000 - PGID=1000 - TZ=Europe/London - - UMASK_SET=022 - WEBUI_PORT=8080 volumes: - :/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. diff --git a/readme-vars.yml b/readme-vars.yml index a9ed448..de39005 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -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." } diff --git a/root/etc/services.d/qbittorrent/run b/root/etc/services.d/qbittorrent/run index 97ac260..022839f 100644 --- a/root/etc/services.d/qbittorrent/run +++ b/root/etc/services.d/qbittorrent/run @@ -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}"