mirror of
https://github.com/linuxserver/docker-phpmyadmin.git
synced 2026-02-20 08:40:43 +08:00
Support BASE64 config input to match official image
This commit is contained in:
parent
a229bb5357
commit
127ec18710
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user