mirror of
https://github.com/phpmyadmin/docker.git
synced 2026-09-24 07:35:03 -05:00
Implement #192 - override config using base64 encoded config in ENVs
Closes: #192 Pull-request: #262 Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
@@ -64,4 +64,14 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -z "${PMA_CONFIG_BASE64}" ]; then
|
||||
echo "Adding the custom config.inc.php from base64."
|
||||
echo "${PMA_CONFIG_BASE64}" | base64 -d > /etc/phpmyadmin/config.inc.php
|
||||
fi
|
||||
|
||||
if [ ! -z "${PMA_USER_CONFIG_BASE64}" ]; then
|
||||
echo "Adding the custom config.user.inc.php from base64."
|
||||
echo "${PMA_USER_CONFIG_BASE64}" | base64 -d > /etc/phpmyadmin/config.user.inc.php
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
||||
Reference in New Issue
Block a user