Skip to content

Commit

Permalink
Merge pull request #277 from upstreamable/chown
Browse files Browse the repository at this point in the history
Give ownership for www-data to /var/www
  • Loading branch information
tilosp authored Mar 11, 2018
2 parents 5c05c9e + 5714672 commit 9fb10be
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions 11.0/apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ RUN { \
echo 'opcache.revalidate_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
chown -R www-data:root /var/www/html; \
chmod -R g=u /var/www/html
chown -R www-data:root /var/www; \
chmod -R g=u /var/www

VOLUME /var/www/html

Expand Down
4 changes: 2 additions & 2 deletions 11.0/fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ RUN { \
echo 'opcache.revalidate_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
chown -R www-data:root /var/www/html; \
chmod -R g=u /var/www/html
chown -R www-data:root /var/www; \
chmod -R g=u /var/www

VOLUME /var/www/html

Expand Down
4 changes: 2 additions & 2 deletions 11.0/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ RUN { \
echo 'opcache.revalidate_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
chown -R www-data:root /var/www/html; \
chmod -R g=u /var/www/html
chown -R www-data:root /var/www; \
chmod -R g=u /var/www

VOLUME /var/www/html

Expand Down
4 changes: 2 additions & 2 deletions 12.0/apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ RUN { \
echo 'opcache.revalidate_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
chown -R www-data:root /var/www/html; \
chmod -R g=u /var/www/html
chown -R www-data:root /var/www; \
chmod -R g=u /var/www

VOLUME /var/www/html

Expand Down
4 changes: 2 additions & 2 deletions 12.0/fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ RUN { \
echo 'opcache.revalidate_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
chown -R www-data:root /var/www/html; \
chmod -R g=u /var/www/html
chown -R www-data:root /var/www; \
chmod -R g=u /var/www

VOLUME /var/www/html

Expand Down
4 changes: 2 additions & 2 deletions 12.0/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ RUN { \
echo 'opcache.revalidate_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
chown -R www-data:root /var/www/html; \
chmod -R g=u /var/www/html
chown -R www-data:root /var/www; \
chmod -R g=u /var/www

VOLUME /var/www/html

Expand Down
4 changes: 2 additions & 2 deletions 13.0/apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ RUN { \
echo 'opcache.revalidate_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
chown -R www-data:root /var/www/html; \
chmod -R g=u /var/www/html
chown -R www-data:root /var/www; \
chmod -R g=u /var/www

VOLUME /var/www/html

Expand Down
4 changes: 2 additions & 2 deletions 13.0/fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ RUN { \
echo 'opcache.revalidate_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
chown -R www-data:root /var/www/html; \
chmod -R g=u /var/www/html
chown -R www-data:root /var/www; \
chmod -R g=u /var/www

VOLUME /var/www/html

Expand Down
4 changes: 2 additions & 2 deletions 13.0/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ RUN { \
echo 'opcache.revalidate_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
chown -R www-data:root /var/www/html; \
chmod -R g=u /var/www/html
chown -R www-data:root /var/www; \
chmod -R g=u /var/www

VOLUME /var/www/html

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile-alpine.template
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ RUN { \
echo 'opcache.revalidate_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
chown -R www-data:root /var/www/html; \
chmod -R g=u /var/www/html
chown -R www-data:root /var/www; \
chmod -R g=u /var/www

VOLUME /var/www/html
%%VARIANT_EXTRAS%%
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile-debian.template
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ RUN { \
echo 'opcache.revalidate_freq=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
chown -R www-data:root /var/www/html; \
chmod -R g=u /var/www/html
chown -R www-data:root /var/www; \
chmod -R g=u /var/www

VOLUME /var/www/html
%%VARIANT_EXTRAS%%
Expand Down

0 comments on commit 9fb10be

Please sign in to comment.