File tree Expand file tree Collapse file tree 5 files changed +20
-5
lines changed
Expand file tree Collapse file tree 5 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,10 @@ RUN set -ex; \
117117 grep -q -F "'configFile' => ROOT_PATH . 'config.inc.php'," /var/www/html/libraries/vendor_config.php; \
118118 sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
119119 grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
120- php -l /var/www/html/libraries/vendor_config.php;
120+ php -l /var/www/html/libraries/vendor_config.php; \
121+ find /var/www/html -type d -exec chmod 555 {} \;; \
122+ find /var/www/html -type f -exec chmod 444 {} \;; \
123+ chmod 777 /var/www/html/tmp;
121124
122125# Copy configuration
123126COPY --chown=www-data:www-data config.inc.php /etc/phpmyadmin/config.inc.php
Original file line number Diff line number Diff line change @@ -136,7 +136,10 @@ RUN set -ex; \
136136 grep -q -F "'configFile' => ROOT_PATH . 'config.inc.php'," /var/www/html/libraries/vendor_config.php; \
137137 sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
138138 grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
139- php -l /var/www/html/libraries/vendor_config.php;
139+ php -l /var/www/html/libraries/vendor_config.php; \
140+ find /var/www/html -type d -exec chmod 555 {} \;; \
141+ find /var/www/html -type f -exec chmod 444 {} \;; \
142+ chmod 777 /var/www/html/tmp;
140143
141144# Copy configuration
142145COPY --chown=www-data:www-data config.inc.php /etc/phpmyadmin/config.inc.php
Original file line number Diff line number Diff line change @@ -137,7 +137,10 @@ RUN set -ex; \
137137 grep -q -F "'configFile' => ROOT_PATH . 'config.inc.php'," /var/www/html/libraries/vendor_config.php; \
138138 sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
139139 grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
140- php -l /var/www/html/libraries/vendor_config.php;
140+ php -l /var/www/html/libraries/vendor_config.php; \
141+ find /var/www/html -type d -exec chmod 555 {} \; ; \
142+ find /var/www/html -type f -exec chmod 444 {} \; ; \
143+ chmod 777 /var/www/html/tmp;
141144
142145# Copy configuration
143146COPY --chown=www-data:www-data config.inc.php /etc/phpmyadmin/config.inc.php
Original file line number Diff line number Diff line change @@ -118,7 +118,10 @@ RUN set -ex; \
118118 grep -q -F "'configFile' => ROOT_PATH . 'config.inc.php'," /var/www/html/libraries/vendor_config.php; \
119119 sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
120120 grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
121- php -l /var/www/html/libraries/vendor_config.php;
121+ php -l /var/www/html/libraries/vendor_config.php; \
122+ find /var/www/html -type d -exec chmod 555 {} \; ; \
123+ find /var/www/html -type f -exec chmod 444 {} \; ; \
124+ chmod 777 /var/www/html/tmp;
122125
123126# Copy configuration
124127COPY --chown=www-data:www-data config.inc.php /etc/phpmyadmin/config.inc.php
Original file line number Diff line number Diff line change @@ -134,7 +134,10 @@ RUN set -ex; \
134134 grep -q -F "'configFile' => ROOT_PATH . 'config.inc.php'," /var/www/html/libraries/vendor_config.php; \
135135 sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
136136 grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
137- php -l /var/www/html/libraries/vendor_config.php;
137+ php -l /var/www/html/libraries/vendor_config.php; \
138+ find /var/www/html -type d -exec chmod 555 {} \; ; \
139+ find /var/www/html -type f -exec chmod 444 {} \; ; \
140+ chmod 777 /var/www/html/tmp;
138141
139142# Copy configuration
140143COPY --chown=www-data:www-data config.inc.php /etc/phpmyadmin/config.inc.php
You can’t perform that action at this time.
0 commit comments