Skip to content

Commit 3261919

Browse files
committed
Change the config syntax replacement way for phpMyAdmin 5.2 to define the "configFile" directive
Fixes #361 Fixes #364 Fixes #365 Fixes #366
1 parent cddd8dd commit 3261919

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

Dockerfile-alpine.template

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ RUN set -ex; \
102102
gpgconf --kill all; \
103103
rm -r "$GNUPGHOME" phpMyAdmin.tar.xz phpMyAdmin.tar.xz.asc; \
104104
rm -r -v /var/www/html/setup/ /var/www/html/examples/ /var/www/html/js/src/ /var/www/html/templates/test/ /var/www/html/babel.config.json /var/www/html/doc/html/_sources/ /var/www/html/RELEASE-DATE-$VERSION /var/www/html/CONTRIBUTING.md; \
105-
grep -q -F "define('CONFIG_DIR'," /var/www/html/libraries/vendor_config.php; \
106-
sed -i "s@define('CONFIG_DIR'.*@define('CONFIG_DIR', '/etc/phpmyadmin/');@" /var/www/html/libraries/vendor_config.php; \
107-
grep -q -F "define('CONFIG_DIR', '/etc/phpmyadmin/');" /var/www/html/libraries/vendor_config.php; \
105+
grep -q -F "'configFile' => ROOT_PATH . 'config.inc.php'," /var/www/html/libraries/vendor_config.php; \
106+
sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
107+
grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
108108
php -l /var/www/html/libraries/vendor_config.php; \
109109
apk del --no-network .fetch-deps
110110

Dockerfile-debian.template

+3-3
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ RUN set -ex; \
109109
gpgconf --kill all; \
110110
rm -r "$GNUPGHOME" phpMyAdmin.tar.xz phpMyAdmin.tar.xz.asc; \
111111
rm -r -v /var/www/html/setup/ /var/www/html/examples/ /var/www/html/js/src/ /var/www/html/templates/test/ /var/www/html/babel.config.json /var/www/html/doc/html/_sources/ /var/www/html/RELEASE-DATE-$VERSION /var/www/html/CONTRIBUTING.md; \
112-
grep -q -F "define('CONFIG_DIR'," /var/www/html/libraries/vendor_config.php; \
113-
sed -i "s@define('CONFIG_DIR'.*@define('CONFIG_DIR', '/etc/phpmyadmin/');@" /var/www/html/libraries/vendor_config.php; \
114-
grep -q -F "define('CONFIG_DIR', '/etc/phpmyadmin/');" /var/www/html/libraries/vendor_config.php; \
112+
grep -q -F "'configFile' => ROOT_PATH . 'config.inc.php'," /var/www/html/libraries/vendor_config.php; \
113+
sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
114+
grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
115115
php -l /var/www/html/libraries/vendor_config.php; \
116116
\
117117
apt-mark auto '.*' > /dev/null; \

apache/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ RUN set -ex; \
109109
gpgconf --kill all; \
110110
rm -r "$GNUPGHOME" phpMyAdmin.tar.xz phpMyAdmin.tar.xz.asc; \
111111
rm -r -v /var/www/html/setup/ /var/www/html/examples/ /var/www/html/js/src/ /var/www/html/templates/test/ /var/www/html/babel.config.json /var/www/html/doc/html/_sources/ /var/www/html/RELEASE-DATE-$VERSION /var/www/html/CONTRIBUTING.md; \
112-
grep -q -F "define('CONFIG_DIR'," /var/www/html/libraries/vendor_config.php; \
113-
sed -i "s@define('CONFIG_DIR'.*@define('CONFIG_DIR', '/etc/phpmyadmin/');@" /var/www/html/libraries/vendor_config.php; \
114-
grep -q -F "define('CONFIG_DIR', '/etc/phpmyadmin/');" /var/www/html/libraries/vendor_config.php; \
112+
grep -q -F "'configFile' => ROOT_PATH . 'config.inc.php'," /var/www/html/libraries/vendor_config.php; \
113+
sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
114+
grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
115115
php -l /var/www/html/libraries/vendor_config.php; \
116116
\
117117
apt-mark auto '.*' > /dev/null; \

fpm-alpine/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ RUN set -ex; \
102102
gpgconf --kill all; \
103103
rm -r "$GNUPGHOME" phpMyAdmin.tar.xz phpMyAdmin.tar.xz.asc; \
104104
rm -r -v /var/www/html/setup/ /var/www/html/examples/ /var/www/html/js/src/ /var/www/html/templates/test/ /var/www/html/babel.config.json /var/www/html/doc/html/_sources/ /var/www/html/RELEASE-DATE-$VERSION /var/www/html/CONTRIBUTING.md; \
105-
grep -q -F "define('CONFIG_DIR'," /var/www/html/libraries/vendor_config.php; \
106-
sed -i "s@define('CONFIG_DIR'.*@define('CONFIG_DIR', '/etc/phpmyadmin/');@" /var/www/html/libraries/vendor_config.php; \
107-
grep -q -F "define('CONFIG_DIR', '/etc/phpmyadmin/');" /var/www/html/libraries/vendor_config.php; \
105+
grep -q -F "'configFile' => ROOT_PATH . 'config.inc.php'," /var/www/html/libraries/vendor_config.php; \
106+
sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
107+
grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
108108
php -l /var/www/html/libraries/vendor_config.php; \
109109
apk del --no-network .fetch-deps
110110

fpm/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ RUN set -ex; \
109109
gpgconf --kill all; \
110110
rm -r "$GNUPGHOME" phpMyAdmin.tar.xz phpMyAdmin.tar.xz.asc; \
111111
rm -r -v /var/www/html/setup/ /var/www/html/examples/ /var/www/html/js/src/ /var/www/html/templates/test/ /var/www/html/babel.config.json /var/www/html/doc/html/_sources/ /var/www/html/RELEASE-DATE-$VERSION /var/www/html/CONTRIBUTING.md; \
112-
grep -q -F "define('CONFIG_DIR'," /var/www/html/libraries/vendor_config.php; \
113-
sed -i "s@define('CONFIG_DIR'.*@define('CONFIG_DIR', '/etc/phpmyadmin/');@" /var/www/html/libraries/vendor_config.php; \
114-
grep -q -F "define('CONFIG_DIR', '/etc/phpmyadmin/');" /var/www/html/libraries/vendor_config.php; \
112+
grep -q -F "'configFile' => ROOT_PATH . 'config.inc.php'," /var/www/html/libraries/vendor_config.php; \
113+
sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php; \
114+
grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php; \
115115
php -l /var/www/html/libraries/vendor_config.php; \
116116
\
117117
apt-mark auto '.*' > /dev/null; \

0 commit comments

Comments
 (0)