Deprecate UMASK_SET in favor of UMASK in baseimage

This commit is contained in:
Roxedus 2021-01-20 14:36:26 +01:00
parent 8e8e2f9664
commit 9a6da3e400
No known key found for this signature in database
GPG key ID: 9B4E311961C63639
3 changed files with 6 additions and 7 deletions

View file

@ -1,9 +1,10 @@
#!/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
echo "Starting Plex Media Server."
export PLEX_MEDIA_SERVER_INFO_MODEL=$(uname -m)