From 1716adc65ef971e1e5eba44dd25b8b6418fb6157 Mon Sep 17 00:00:00 2001 From: Smithi Date: Tue, 29 Dec 2015 20:07:41 +0700 Subject: [PATCH] Better verify of permissions I had a problem with your docker, when I mounted my web files from a docker volume container. The rights were still set to the owner root:root. With this little fix they should be set properly to the runtime! Cheers, Michael --- start.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/start.sh b/start.sh index 502c5b2..ddf8519 100644 --- a/start.sh +++ b/start.sh @@ -43,5 +43,8 @@ if [[ "$TEMPLATE_NGINX_HTML" != "0" ]] ; then done fi +# Again set the right permissions (needed when mounting from a volume) +chown -Rf www-data.www-data /usr/share/nginx/html/ + # Start supervisord and services /usr/bin/supervisord -n -c /etc/supervisord.conf