From 5d643bb58d6c600b25db4cd540d05a612a3e57e4 Mon Sep 17 00:00:00 2001 From: ThiloGa <61890902+ThiloGa@users.noreply.github.com> Date: Fri, 6 Mar 2020 23:46:00 +0100 Subject: [PATCH] Update dns_nm.sh --- dnsapi/dns_nm.sh | 8 -------- 1 file changed, 8 deletions(-) diff --git a/dnsapi/dns_nm.sh b/dnsapi/dns_nm.sh index 21ec063b..8bf3248c 100644 --- a/dnsapi/dns_nm.sh +++ b/dnsapi/dns_nm.sh @@ -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" }