Skip to content

Commit

Permalink
Update dns_hosttech.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
baerengraben authored Nov 18, 2023
1 parent 912307e commit aa560bd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions dnsapi/dns_hosttech.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/bash

#Hosttech_Key="abcdefghuhu"

Hosttech_Api="https://api.ns1.hosttech.eu/api/user/v1"

######## Public functions #####################
Expand Down Expand Up @@ -34,8 +33,6 @@ dns_hosttech_add() {
if _hosttech_rest POST "zones/$_domain/records" "{\"type\":\"TXT\",\"name\":\"$_sub_domain\",\"text\":\"$txtvalue\",\"ttl\":600}"; then
if _contains "$_response" "$_sub_domain"; then
_debug recordID "$(echo "$_response" | grep -o '"id":[^"]*' | grep -Po "\d+")"

#save the created recordID to the account conf file, so we can read it back for deleting in dns_hosttech_rm.
_saveaccountconf recordID "$(echo "$_response" | grep -o '"id":[^"]*' | grep -Po "\d+")"
_info "Added, OK"
return 0
Expand All @@ -46,7 +43,6 @@ dns_hosttech_add() {
fi
_err "Add txt record error."
return 1

}

#fulldomain txtvalue
Expand Down

0 comments on commit aa560bd

Please sign in to comment.