Deprecate UMASK_SET in favor of UMASK in baseimage

This commit is contained in:
Roxedus
2021-01-20 13:11:01 +01:00
parent 7487834749
commit 7badc41d09
3 changed files with 14 additions and 16 deletions

View File

@@ -6,9 +6,10 @@ JELLYFIN_LOG_DIR="/config/log" \
JELLYFIN_CACHE_DIR="/config/cache" \
JELLYFIN_WEB_DIR="/usr/share/jellyfin/web"
# set umask
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 /usr/bin/jellyfin \