Browse Source

Fix issue when using docker-compose file version 2 and up

master
Fábio Kaiser Rauber 3 years ago
parent
commit
58bde18b34
  1. 2
      pdns/start.sh

2
pdns/start.sh

@ -11,7 +11,7 @@ if [ ! -z $MYSQL_ENV_MARIADB_DATABASE ]; then
PDNSCONF_GMYSQL_USER=$MYSQL_ENV_MARIADB_USER PDNSCONF_GMYSQL_USER=$MYSQL_ENV_MARIADB_USER
PDNSCONF_GMYSQL_DBNAME=$MYSQL_ENV_MARIADB_DATABASE PDNSCONF_GMYSQL_DBNAME=$MYSQL_ENV_MARIADB_DATABASE
PDNSCONF_GMYSQL_PASSWORD=$MYSQL_ENV_MARIADB_PASSWORD PDNSCONF_GMYSQL_PASSWORD=$MYSQL_ENV_MARIADB_PASSWORD
else elif [ ! -z $MYSQL_ENV_MYSQL_DATABASE ]; then
PDNSCONF_GMYSQL_USER=$MYSQL_ENV_MYSQL_USER PDNSCONF_GMYSQL_USER=$MYSQL_ENV_MYSQL_USER
PDNSCONF_GMYSQL_DBNAME=$MYSQL_ENV_MYSQL_DATABASE PDNSCONF_GMYSQL_DBNAME=$MYSQL_ENV_MYSQL_DATABASE
PDNSCONF_GMYSQL_PASSWORD=$MYSQL_ENV_MYSQL_PASSWORD PDNSCONF_GMYSQL_PASSWORD=$MYSQL_ENV_MYSQL_PASSWORD

Loading…
Cancel
Save