mirror of
https://github.com/pschiffe/docker-pdns.git
synced 2024-11-13 03:47:56 +01:00
Add MYSQL_ENV_MYSQL_HOST and MYSQL_ENV_MYSQL_PORT variables
This commit is contained in:
parent
d8214ebc7d
commit
338d106d67
2 changed files with 4 additions and 4 deletions
|
@ -3,8 +3,8 @@
|
|||
set -euo pipefail
|
||||
|
||||
# Configure mysql env vars
|
||||
: "${PDNS_ADMIN_SQLA_DB_HOST:='mysql'}"
|
||||
: "${PDNS_ADMIN_SQLA_DB_PORT:='3306'}"
|
||||
: "${PDNS_ADMIN_SQLA_DB_HOST:='${MYSQL_ENV_MYSQL_HOST:-mysql}'}"
|
||||
: "${PDNS_ADMIN_SQLA_DB_PORT:='${MYSQL_ENV_MYSQL_PORT:-3306}'}"
|
||||
: "${PDNS_ADMIN_SQLA_DB_USER:='${MYSQL_ENV_MYSQL_USER:-root}'}"
|
||||
if [ "${PDNS_ADMIN_SQLA_DB_USER}" = "'root'" ]; then
|
||||
: "${PDNS_ADMIN_SQLA_DB_PASSWORD:='$MYSQL_ENV_MYSQL_ROOT_PASSWORD'}"
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
set -euo pipefail
|
||||
|
||||
# Configure mysql env vars
|
||||
: "${PDNS_gmysql_host:=mysql}"
|
||||
: "${PDNS_gmysql_port:=3306}"
|
||||
: "${PDNS_gmysql_host:=${MYSQL_ENV_MYSQL_HOST:-mysql}}"
|
||||
: "${PDNS_gmysql_port:=${MYSQL_ENV_MYSQL_PORT:-3306}}"
|
||||
: "${PDNS_gmysql_user:=${MYSQL_ENV_MYSQL_USER:-root}}"
|
||||
if [ "${PDNS_gmysql_user}" = 'root' ]; then
|
||||
: "${PDNS_gmysql_password:=$MYSQL_ENV_MYSQL_ROOT_PASSWORD}"
|
||||
|
|
Loading…
Reference in a new issue