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:
William Desportes
2019-12-24 11:13:18 +01:00
parent ed101c2f39
commit 8edcc52dfb
5 changed files with 42 additions and 0 deletions
+10
View File
@@ -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 "$@"