From a51b6c84ac61b1d69eded44b3b80db7e954f8184 Mon Sep 17 00:00:00 2001 From: "rf@worldstream.nl" Date: Mon, 21 Oct 2019 10:02:41 +0200 Subject: [PATCH] Set gmysql-dnssec parameter (DNSSEC support) --- entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 40f5184..9381d2f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -10,12 +10,16 @@ if $MYSQL_AUTOCONF ; then if [ -z "$MYSQL_PORT" ]; then MYSQL_PORT=3306 fi + if [ -z "$MYSQL_DNSSEC" ]; then + MYSQL_DNSSEC='no' + fi # Set MySQL Credentials in pdns.conf sed -r -i "s/^[# ]*gmysql-host=.*/gmysql-host=${MYSQL_HOST}/g" /etc/pdns/pdns.conf sed -r -i "s/^[# ]*gmysql-port=.*/gmysql-port=${MYSQL_PORT}/g" /etc/pdns/pdns.conf sed -r -i "s/^[# ]*gmysql-user=.*/gmysql-user=${MYSQL_USER}/g" /etc/pdns/pdns.conf sed -r -i "s/^[# ]*gmysql-password=.*/gmysql-password=${MYSQL_PASS}/g" /etc/pdns/pdns.conf sed -r -i "s/^[# ]*gmysql-dbname=.*/gmysql-dbname=${MYSQL_DB}/g" /etc/pdns/pdns.conf + sed -r -i "s/^[# ]*gmysql-dnssec=.*/gmysql-dnssec=${MYSQL_DNSSEC}/g" /etc/pdns/pdns.conf MYSQLCMD="mysql --host=${MYSQL_HOST} --user=${MYSQL_USER} --password=${MYSQL_PASS} --port=${MYSQL_PORT} -r -N"