summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Applications/phpmyadmin/config.inc.php11
-rw-r--r--Services/apache/sx-httpd.sh1
2 files changed, 11 insertions, 1 deletions
diff --git a/Applications/phpmyadmin/config.inc.php b/Applications/phpmyadmin/config.inc.php
index d7411ba..110f2aa 100644
--- a/Applications/phpmyadmin/config.inc.php
+++ b/Applications/phpmyadmin/config.inc.php
@@ -35,7 +35,6 @@ if(getenv('MARIADB_ENV_MYSQL_USER') != '') {
$cfg['Servers'][$i]['password'] = getenv('MARIADB_ENV_MYSQL_PASSWORD');
}
-
if(getenv('MARIADB2_ENV_MYSQL_USER') != '') {
$i++;
$cfg['Servers'][$i]['extension'] = 'mysqli';
@@ -45,6 +44,16 @@ if(getenv('MARIADB2_ENV_MYSQL_USER') != '') {
$cfg['Servers'][$i]['user'] = getenv('MARIADB2_ENV_MYSQL_USER');
$cfg['Servers'][$i]['password'] = getenv('MARIADB2_ENV_MYSQL_PASSWORD');
}
+
+if(getenv('DB_ENV_MYSQL_USER') != '') {
+ $i++;
+ $cfg['Servers'][$i]['extension'] = 'mysqli';
+ $cfg['Servers'][$i]['auth_type'] = 'config';
+ $cfg['Servers'][$i]['host'] = getenv('DB_PORT_3306_TCP_ADDR');
+ $cfg['Servers'][$i]['port'] = getenv('DB_PORT_3306_TCP_PORT');
+ $cfg['Servers'][$i]['user'] = getenv('DB_ENV_MYSQL_USER');
+ $cfg['Servers'][$i]['password'] = getenv('DB_ENV_MYSQL_PASSWORD');
+}
/**
* phpMyAdmin configuration storage settings.
*/
diff --git a/Services/apache/sx-httpd.sh b/Services/apache/sx-httpd.sh
index b404dd6..6937969 100644
--- a/Services/apache/sx-httpd.sh
+++ b/Services/apache/sx-httpd.sh
@@ -89,6 +89,7 @@ function setEnvironmentVariableInFile {
function setSys2HttpEnvironmentVariable {
+ echo "adding environement to $1" | tee -a $STARTUPLOG
echo "" >> $1
for _curVar in `env | awk -F = '{print $1}'`;do
setEnvironmentVariableInFile $1 ${_curVar} ${!_curVar}