From 58bde18b34db36aea2fd1357acf82be88c83c7b1 Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Mon, 13 Jun 2022 10:52:10 -0300 Subject: [PATCH] Fix issue when using docker-compose file version 2 and up --- pdns/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/start.sh b/pdns/start.sh index 88935fb..ca00292 100644 --- a/pdns/start.sh +++ b/pdns/start.sh @@ -11,7 +11,7 @@ if [ ! -z $MYSQL_ENV_MARIADB_DATABASE ]; then PDNSCONF_GMYSQL_USER=$MYSQL_ENV_MARIADB_USER PDNSCONF_GMYSQL_DBNAME=$MYSQL_ENV_MARIADB_DATABASE PDNSCONF_GMYSQL_PASSWORD=$MYSQL_ENV_MARIADB_PASSWORD -else +elif [ ! -z $MYSQL_ENV_MYSQL_DATABASE ]; then PDNSCONF_GMYSQL_USER=$MYSQL_ENV_MYSQL_USER PDNSCONF_GMYSQL_DBNAME=$MYSQL_ENV_MYSQL_DATABASE PDNSCONF_GMYSQL_PASSWORD=$MYSQL_ENV_MYSQL_PASSWORD