Fix unbound variable error in pdns/docker-entrypoint.sh

This commit is contained in:
Peter Schiffer 2020-09-30 22:42:59 +02:00
parent d7da9bc8ca
commit f54f187870
No known key found for this signature in database
GPG key ID: 6CCC5046E2B0B44B

View file

@ -29,7 +29,7 @@ if [ "${PDNS_gmysql_password}" != "" ]; then
fi
# Allow socket connections
if [ "${PDNS_gmysql_socket}" != "" ]; then
if [ "${PDNS_gmysql_socket:-}" != "" ]; then
export PDNS_gmysql_host="localhost"
EXTRA="${EXTRA} --socket=${PDNS_gmysql_socket}"
fi