From 2fac0dad32ff00a180f30e0a4bdcaa1525bb7685 Mon Sep 17 00:00:00 2001 From: Steven DUBOIS Date: Fri, 28 Jul 2023 15:00:29 +0200 Subject: [PATCH] Update permissions for www-data's home folder --- php/7.3/Dockerfile | 3 +++ php/7.4/Dockerfile | 3 +++ php/8.0/Dockerfile | 3 +++ php/8.1/Dockerfile | 3 +++ php/8.2/Dockerfile | 3 +++ 5 files changed, 15 insertions(+) diff --git a/php/7.3/Dockerfile b/php/7.3/Dockerfile index 5e52ef7..6d7fe57 100644 --- a/php/7.3/Dockerfile +++ b/php/7.3/Dockerfile @@ -72,6 +72,9 @@ RUN \ usermod -u 1000 www-data && \ groupmod -g 1000 www-data +# Give www-data permissions to its home folder +RUN chown www-data:www-data /var/www + # Installs the "netz98/n98-magerun2" package RUN \ curl -sS https://files.magerun.net/n98-magerun2.phar --output /usr/local/bin/magerun2 && \ diff --git a/php/7.4/Dockerfile b/php/7.4/Dockerfile index f868b6a..566292a 100644 --- a/php/7.4/Dockerfile +++ b/php/7.4/Dockerfile @@ -53,6 +53,9 @@ RUN \ perl -pi -e "s|;pm.status_path = /status|pm.status_path = /php_fpm_status|g" /usr/local/etc/php-fpm.d/www.conf && \ perl -pi -e "s/mailhub=mail/mailhub=maildev/" /etc/ssmtp/ssmtp.conf +# Give www-data permissions to its home folder +RUN chown www-data:www-data /var/www + # Installs the JavaScript dependencies RUN \ curl -fsSL https://deb.nodesource.com/setup_17.x | bash - && \ diff --git a/php/8.0/Dockerfile b/php/8.0/Dockerfile index f39e01b..967d771 100644 --- a/php/8.0/Dockerfile +++ b/php/8.0/Dockerfile @@ -68,6 +68,9 @@ RUN \ usermod -u 1000 www-data && \ groupmod -g 1000 www-data +# Give www-data permissions to its home folder +RUN chown www-data:www-data /var/www + # Installs the "netz98/n98-magerun2" package RUN \ curl -sS https://files.magerun.net/n98-magerun2.phar --output /usr/local/bin/magerun2 && \ diff --git a/php/8.1/Dockerfile b/php/8.1/Dockerfile index 81d3697..f896bdd 100644 --- a/php/8.1/Dockerfile +++ b/php/8.1/Dockerfile @@ -68,6 +68,9 @@ RUN \ usermod -u 1000 www-data && \ groupmod -g 1000 www-data +# Give www-data permissions to its home folder +RUN chown www-data:www-data /var/www + # Installs the "netz98/n98-magerun2" package RUN \ curl -sS https://files.magerun.net/n98-magerun2.phar --output /usr/local/bin/magerun2 && \ diff --git a/php/8.2/Dockerfile b/php/8.2/Dockerfile index 9fb1342..c0426a9 100644 --- a/php/8.2/Dockerfile +++ b/php/8.2/Dockerfile @@ -68,6 +68,9 @@ RUN \ usermod -u 1000 www-data && \ groupmod -g 1000 www-data +# Give www-data permissions to its home folder +RUN chown www-data:www-data /var/www + # Installs the "netz98/n98-magerun2" package RUN \ curl -sS https://files.magerun.net/n98-magerun2.phar --output /usr/local/bin/magerun2 && \