From 6ed3dfe5568941b482cd7d19a39bd19dec05f642 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 11 Aug 2017 20:09:14 +0200 Subject: [PATCH] directory permissions for root group --- 10.0/apache/Dockerfile | 3 ++- 10.0/fpm/Dockerfile | 3 ++- 11.0/apache/Dockerfile | 3 ++- 11.0/fpm/Dockerfile | 3 ++- 12.0/apache/Dockerfile | 3 ++- 12.0/fpm/Dockerfile | 3 ++- Dockerfile-php7.template | 3 ++- Dockerfile.template | 3 ++- 8 files changed, 16 insertions(+), 8 deletions(-) diff --git a/10.0/apache/Dockerfile b/10.0/apache/Dockerfile index f1342612..e10976e0 100644 --- a/10.0/apache/Dockerfile +++ b/10.0/apache/Dockerfile @@ -43,7 +43,8 @@ RUN a2enmod rewrite ENV NEXTCLOUD_VERSION 10.0.6 -RUN chown -R www-data:root /var/www/html +RUN chown -R www-data:root /var/www/html && \ + chmod -R g=u /var/www/html VOLUME /var/www/html RUN curl -fsSL -o nextcloud.tar.bz2 \ diff --git a/10.0/fpm/Dockerfile b/10.0/fpm/Dockerfile index 57aa3982..9cc03370 100644 --- a/10.0/fpm/Dockerfile +++ b/10.0/fpm/Dockerfile @@ -41,7 +41,8 @@ RUN set -ex \ ENV NEXTCLOUD_VERSION 10.0.6 -RUN chown -R www-data:root /var/www/html +RUN chown -R www-data:root /var/www/html && \ + chmod -R g=u /var/www/html VOLUME /var/www/html RUN curl -fsSL -o nextcloud.tar.bz2 \ diff --git a/11.0/apache/Dockerfile b/11.0/apache/Dockerfile index 0182e0a9..ab9c68bd 100644 --- a/11.0/apache/Dockerfile +++ b/11.0/apache/Dockerfile @@ -44,7 +44,8 @@ RUN a2enmod rewrite ENV NEXTCLOUD_VERSION 11.0.4 -RUN chown -R www-data:root /var/www/html +RUN chown -R www-data:root /var/www/html && \ + chmod -R g=u /var/www/html VOLUME /var/www/html RUN curl -fsSL -o nextcloud.tar.bz2 \ diff --git a/11.0/fpm/Dockerfile b/11.0/fpm/Dockerfile index 6fbe9a10..6c75948d 100644 --- a/11.0/fpm/Dockerfile +++ b/11.0/fpm/Dockerfile @@ -42,7 +42,8 @@ RUN set -ex \ ENV NEXTCLOUD_VERSION 11.0.4 -RUN chown -R www-data:root /var/www/html +RUN chown -R www-data:root /var/www/html && \ + chmod -R g=u /var/www/html VOLUME /var/www/html RUN curl -fsSL -o nextcloud.tar.bz2 \ diff --git a/12.0/apache/Dockerfile b/12.0/apache/Dockerfile index 2e4949cb..9032b0a8 100644 --- a/12.0/apache/Dockerfile +++ b/12.0/apache/Dockerfile @@ -44,7 +44,8 @@ RUN a2enmod rewrite ENV NEXTCLOUD_VERSION 12.0.2 -RUN chown -R www-data:root /var/www/html +RUN chown -R www-data:root /var/www/html && \ + chmod -R g=u /var/www/html VOLUME /var/www/html RUN curl -fsSL -o nextcloud.tar.bz2 \ diff --git a/12.0/fpm/Dockerfile b/12.0/fpm/Dockerfile index 399ff1ff..e0c75fd8 100644 --- a/12.0/fpm/Dockerfile +++ b/12.0/fpm/Dockerfile @@ -42,7 +42,8 @@ RUN set -ex \ ENV NEXTCLOUD_VERSION 12.0.2 -RUN chown -R www-data:root /var/www/html +RUN chown -R www-data:root /var/www/html && \ + chmod -R g=u /var/www/html VOLUME /var/www/html RUN curl -fsSL -o nextcloud.tar.bz2 \ diff --git a/Dockerfile-php7.template b/Dockerfile-php7.template index 54a9a3b6..fd153275 100644 --- a/Dockerfile-php7.template +++ b/Dockerfile-php7.template @@ -44,7 +44,8 @@ RUN a2enmod rewrite ENV NEXTCLOUD_VERSION %%VERSION%% -RUN chown -R www-data:root /var/www/html +RUN chown -R www-data:root /var/www/html && \ + chmod -R g=u /var/www/html VOLUME /var/www/html RUN curl -fsSL -o nextcloud.tar.bz2 \ diff --git a/Dockerfile.template b/Dockerfile.template index 88873192..fbf9d620 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -43,7 +43,8 @@ RUN a2enmod rewrite ENV NEXTCLOUD_VERSION %%VERSION%% -RUN chown -R www-data:root /var/www/html +RUN chown -R www-data:root /var/www/html && \ + chmod -R g=u /var/www/html VOLUME /var/www/html RUN curl -fsSL -o nextcloud.tar.bz2 \