diff --git a/docker/run/fs/exe/initialize.sh b/docker/run/fs/exe/initialize.sh index 8c329bb304..b1720b7bc6 100644 --- a/docker/run/fs/exe/initialize.sh +++ b/docker/run/fs/exe/initialize.sh @@ -19,5 +19,10 @@ chmod 444 /root/.profile # update package list to save time later apt-get update > /dev/null 2>&1 & +# Honor a docker environment supplied UMASK +if [ -n "$UMASK" ]; then + umask "$UMASK" +fi + # let supervisord handle the services exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf