Deprecate UMASK_SET in favor of UMASK in baseimage

This commit is contained in:
Roxedus
2021-01-18 09:49:00 +01:00
parent 342996e1d0
commit 892b39acb5
3 changed files with 9 additions and 8 deletions

View File

@@ -1,7 +1,9 @@
#!/usr/bin/with-contenv bash
UMASK_SET=${UMASK_SET:-022}
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 /app/radarr/bin/Radarr \