Update dns_nm.sh

This commit is contained in:
ThiloGa 2020-03-06 23:46:00 +01:00 committed by GitHub
parent a496a657cd
commit 5d643bb58d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,6 @@ fulldomain="${1}"
return 1
fi
zone="$(echo $fulldomain | _egrep_o "[^.]+.[^.]+$")"
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&Action=Delete_IN&TTL=0"
erg="$(_get "$get")"
@ -80,7 +79,6 @@ fulldomain="${1}"
fi
if _contains "$erg" "Success"; then
_info "Success, TXT removed, OK"
@ -90,12 +88,6 @@ else
fi
_debug "ok Auto $zone TXT: $txt erg: $erg"
return 0
# nothing to do
_debug "delete $1 $2 happens automatically through next time of issuing $1"
}