removed some unused Vars

This commit is contained in:
ThiloGa 2020-03-07 15:45:41 +01:00
parent 3b01bf7bda
commit 142ca58d38
2 changed files with 3 additions and 4 deletions

View File

@ -48,7 +48,6 @@ LOCAL_ANY_ADDRESS="0.0.0.0"
DEFAULT_RENEW=60 DEFAULT_RENEW=60
NO_VALUE="no" NO_VALUE="no"
W_DNS="dns" W_DNS="dns"

View File

@ -37,7 +37,7 @@ dns_nm_add() {
erg="$(_get "$get")" erg="$(_get "$get")"
if [ "$?" != "0" ]; then if [ "$?" != "0" ]; then
_err "error Auto $zone TXT: $txt_value" _err "error Ading $zone TXT: $txt_value"
_err "Error $?" _err "Error $?"
return 1 return 1
fi fi
@ -45,7 +45,7 @@ dns_nm_add() {
if _contains "$erg" "Success"; then if _contains "$erg" "Success"; then
_info "Success, TXT Added, OK" _info "Success, TXT Added, OK"
else else
_err "error Auto $zone TXT: $txt_value erg: $erg" _err "error Adding $zone TXT: $txt_value erg: $erg"
return 1 return 1
fi fi
@ -71,7 +71,7 @@ dns_nm_rm() {
get="https://namemaster.de/api/api.php?User=$NM_user&Password=$NM_md5&Antwort=csv&Int=0&Typ=TXT&Zone=$zone&hostname=$fulldomain&TXT=$txt_value&Action=Delete_IN&TTL=0" get="https://namemaster.de/api/api.php?User=$NM_user&Password=$NM_md5&Antwort=csv&Int=0&Typ=TXT&Zone=$zone&hostname=$fulldomain&TXT=$txt_value&Action=Delete_IN&TTL=0"
erg="$(_get "$get")" erg="$(_get "$get")"
if [ "$?" != "0" ]; then if [ "$?" != "0" ]; then
_err "error $action $zone TXT: $txt_value" _err "error Deleting $zone TXT: $txt_value"
_err "Error $?" _err "Error $?"
return 1 return 1
fi fi