diff --git a/pdns-admin/docker-entrypoint.sh b/pdns-admin/docker-entrypoint.sh index b417441..7bf6d8b 100755 --- a/pdns-admin/docker-entrypoint.sh +++ b/pdns-admin/docker-entrypoint.sh @@ -39,7 +39,7 @@ subvars --prefix 'PDNS_ADMIN_' < '/config.py.tpl' > '/opt/powerdns-admin/powerdn # Initialize DB if needed if [[ "${PDNS_ADMIN_SQLA_DB_TYPE}" == 'mysql' ]]; then - SQL_COMMAND="mysql -h ${PDNS_ADMIN_SQLA_DB_HOST} -P ${PDNS_ADMIN_SQLA_DB_PORT} -u ${PDNS_ADMIN_SQLA_DB_USER} -p${PDNS_ADMIN_SQLA_DB_PASSWORD} -e" + SQL_COMMAND="mariadb -h ${PDNS_ADMIN_SQLA_DB_HOST} -P ${PDNS_ADMIN_SQLA_DB_PORT} -u ${PDNS_ADMIN_SQLA_DB_USER} -p${PDNS_ADMIN_SQLA_DB_PASSWORD} -e" elif [[ "${PDNS_ADMIN_SQLA_DB_TYPE}" == 'postgres' ]]; then PGPASSWORD="${PDNS_ADMIN_SQLA_DB_PASSWORD}" export PGPASSWORD diff --git a/pdns-mysql/docker-entrypoint.sh b/pdns-mysql/docker-entrypoint.sh index ac891e8..b75c24e 100755 --- a/pdns-mysql/docker-entrypoint.sh +++ b/pdns-mysql/docker-entrypoint.sh @@ -51,7 +51,7 @@ generateMySQLCommand() { EXTRA="${EXTRA} --socket=${PDNS_gmysql_socket}" fi - MYSQL_COMMAND="mysql -h ${PDNS_gmysql_host} -P ${PDNS_gmysql_port} -u ${PDNS_gmysql_user}${EXTRA}" + MYSQL_COMMAND="mariadb -h ${PDNS_gmysql_host} -P ${PDNS_gmysql_port} -u ${PDNS_gmysql_user}${EXTRA}" } createDatabaseIfRequested() {