fixed unset variables.

This commit is contained in:
Dan 2018-03-03 10:43:29 -06:00 committed by GitHub
parent e97d59d89e
commit d7b4a7763e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,14 +21,14 @@ dns_pdnsMysql_add() {
txtvalue=$2
if [ -z "$PDNS_Host" ]; then
PDNS_Url=""
PDNS_Host=""
_err "You didn't specify PowerDNS Mysql address."
_err "Please set PDNS_Host and try again."
return 1
fi
if [ -z "$PDNS_Port" ]; then
PDNS_Url=""
PDNS_Port=""
_err "You didn't specify PowerDNS Mysql Port."
_err "Please set PDNS_Port and try again."
return 1