From 52ef7b848c76f1e0858552dcd6a16d1c5f895efe Mon Sep 17 00:00:00 2001 From: Jack McNicol Date: Fri, 22 Jul 2016 02:13:17 +0930 Subject: [PATCH] always chown webroot for better mounting --- scripts/start.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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