diff --git a/scripts/start.sh b/scripts/start.sh index a93f151..db883ed 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -39,7 +39,6 @@ if [ ! -d "${webroot}/.git" ]; then else git clone $GIT_REPO $webroot fi - chown -Rf nginx.nginx /var/www/html fi fi @@ -85,5 +84,8 @@ if [[ "$TEMPLATE_NGINX_HTML" == "1" ]] ; then done fi +# Always chown webroot for better mounting +chown -Rf nginx.nginx $webroot + # Start supervisord and services /usr/bin/supervisord -n -c /etc/supervisord.conf