Support BASE64 config input to match official image

This commit is contained in:
thespad 2024-11-26 15:57:16 +00:00
parent a229bb5357
commit 127ec18710
No known key found for this signature in database

View File

@ -12,11 +12,19 @@ if [ ! -f /config/phpmyadmin/config.secret.inc.php ]; then
EOT
fi
if [ ! -f /config/phpmyadmin/config.user.inc.php ]; then
if [[ -n "${PMA_CONFIG_BASE64}" ]]; then
echo "${PMA_CONFIG_BASE64}" | base64 -d > /config/phpmyadmin/config.inc.php
fi
if [[ -n "${PMA_USER_CONFIG_BASE64}" ]]; then
echo "${PMA_USER_CONFIG_BASE64}" | base64 -d > /config/phpmyadmin/config.user.inc.php
fi
if [[ ! -f /config/phpmyadmin/config.user.inc.php ]]; then
touch /config/phpmyadmin/config.user.inc.php
fi
if [ ! -f /config/phpmyadmin/config.inc.php ]; then
if [[ ! -f /config/phpmyadmin/config.inc.php ]]; then
cp /defaults/config.inc.php /config/phpmyadmin/config.inc.php
fi