Skip to content

Commit 6d69b77

Browse files
committed
Ref #187 - Make all the data www-data:www-data
1 parent 6070d87 commit 6d69b77

5 files changed

Lines changed: 10 additions & 0 deletions

File tree

Dockerfile-alpine.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,12 @@ RUN set -ex; \
114114
sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
115115
grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
116116
php -l /var/www/html/libraries/vendor_config.php; \
117+
chown -R www-data:www-data -R /var/www/html/; \
117118
apk del --no-network .fetch-deps
118119

119120
# Copy configuration
120121
COPY config.inc.php /etc/phpmyadmin/config.inc.php
122+
RUN chown www-data:www-data -R /etc/phpmyadmin/
121123

122124
# Copy main script
123125
COPY docker-entrypoint.sh /docker-entrypoint.sh

Dockerfile-debian.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ RUN set -ex; \
130130
sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
131131
grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
132132
php -l /var/www/html/libraries/vendor_config.php; \
133+
chown -R www-data:www-data -R /var/www/html/; \
133134
\
134135
apt-mark auto '.*' > /dev/null; \
135136
apt-mark manual $savedAptMark; \
@@ -138,6 +139,7 @@ RUN set -ex; \
138139

139140
# Copy configuration
140141
COPY config.inc.php /etc/phpmyadmin/config.inc.php
142+
RUN chown www-data:www-data -R /etc/phpmyadmin/
141143

142144
# Copy main script
143145
COPY docker-entrypoint.sh /docker-entrypoint.sh

apache/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ RUN set -ex; \
131131
sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
132132
grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
133133
php -l /var/www/html/libraries/vendor_config.php; \
134+
chown -R www-data:www-data -R /var/www/html/; \
134135
\
135136
apt-mark auto '.*' > /dev/null; \
136137
apt-mark manual $savedAptMark; \
@@ -139,6 +140,7 @@ RUN set -ex; \
139140

140141
# Copy configuration
141142
COPY config.inc.php /etc/phpmyadmin/config.inc.php
143+
RUN chown www-data:www-data -R /etc/phpmyadmin/
142144

143145
# Copy main script
144146
COPY docker-entrypoint.sh /docker-entrypoint.sh

fpm-alpine/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,12 @@ RUN set -ex; \
115115
sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
116116
grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
117117
php -l /var/www/html/libraries/vendor_config.php; \
118+
chown -R www-data:www-data -R /var/www/html/; \
118119
apk del --no-network .fetch-deps
119120

120121
# Copy configuration
121122
COPY config.inc.php /etc/phpmyadmin/config.inc.php
123+
RUN chown www-data:www-data -R /etc/phpmyadmin/
122124

123125
# Copy main script
124126
COPY docker-entrypoint.sh /docker-entrypoint.sh

fpm/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ RUN set -ex; \
128128
sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
129129
grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
130130
php -l /var/www/html/libraries/vendor_config.php; \
131+
chown -R www-data:www-data -R /var/www/html/; \
131132
\
132133
apt-mark auto '.*' > /dev/null; \
133134
apt-mark manual $savedAptMark; \
@@ -136,6 +137,7 @@ RUN set -ex; \
136137

137138
# Copy configuration
138139
COPY config.inc.php /etc/phpmyadmin/config.inc.php
140+
RUN chown www-data:www-data -R /etc/phpmyadmin/
139141

140142
# Copy main script
141143
COPY docker-entrypoint.sh /docker-entrypoint.sh

0 commit comments

Comments
 (0)