]> git.proxmox.com Git - mirror_acme.sh.git/blobdiff - dnsapi/dns_kinghost.sh
Merge pull request #3734 from acmesh-official/dev
[mirror_acme.sh.git] / dnsapi / dns_kinghost.sh
index 2ac8e6df201e68a9e49cd0f7df2a32a8429b59de..6253c71da40cde366536a4da1dad1eb645c3b6c5 100644 (file)
@@ -37,7 +37,7 @@ dns_kinghost_add() {
   _debug "Getting txt records"
   _kinghost_rest GET "dns" "name=$fulldomain&content=$txtvalue"
 
-  #This API call returns "status":"ok" if dns record does not exists
+  #This API call returns "status":"ok" if dns record does not exist
   #We are creating a new txt record here, so we expect the "ok" status
   if ! echo "$response" | grep '"status":"ok"' >/dev/null; then
     _err "Error"
@@ -71,17 +71,6 @@ dns_kinghost_rm() {
     return 1
   fi
 
-  _debug "Getting txt records"
-  _kinghost_rest GET "dns" "name=$fulldomain&content=$txtvalue"
-
-  #This API call returns "status":"ok" if dns record does not exists
-  #We are removing a txt record here, so the record must exists
-  if echo "$response" | grep '"status":"ok"' >/dev/null; then
-    _err "Error"
-    _err "$response"
-    return 1
-  fi
-
   _kinghost_rest DELETE "dns" "name=$fulldomain&content=$txtvalue"
   if ! echo "$response" | grep '"status":"ok"' >/dev/null; then
     _err "Error"