Deprecate UMASK_SET in favor of UMASK in baseimage

This commit is contained in:
Roxedus 2021-01-20 13:19:04 +01:00
parent c730612170
commit 2b00f83793
No known key found for this signature in database
GPG key ID: 9B4E311961C63639
3 changed files with 6 additions and 6 deletions

View file

@ -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}"