Deprecate UMASK_SET in favor of UMASK in baseimage
This commit is contained in:
@@ -262,6 +262,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.
|
||||
* **05.07.20:** - Shift to Python3
|
||||
* **31.10.19:** - Adding unstable tag.
|
||||
* **02.08.19:** - Add qbitorrent-cli for processing scripts.
|
||||
|
||||
@@ -69,6 +69,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: "05.07.20:", desc: "Shift to Python3" }
|
||||
- { date: "31.10.19:", desc: "Adding unstable tag." }
|
||||
- { 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