Browse Source

Update dns_gd.sh

pull/4870/head
BordenIT, LLC Admin 2 years ago
committed by GitHub
parent
commit
d0cfa74408
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dnsapi/dns_gd.sh

2
dnsapi/dns_gd.sh

@ -51,7 +51,7 @@ dns_gd_add() {
fi
_add_data="{\"data\":\"$txtvalue\"}"
for t in $(echo "$response" | tr '{' "\n" | grep "\"name\":\"$_sub_domain\"" | tr ',' "\n" | grep '"data"' | cut -d : -f 2); do
for t in $(echo "$response" | tr '{' "\n" | grep "\"name\":\"$fulldomain\"" | tr ',' "\n" | grep '"data"' | cut -d : -f 2); do
_debug2 t "$t"
# ignore empty (previously removed) records, to prevent useless _acme-challenge TXT entries
if [ "$t" ] && [ "$t" != '""' ]; then

Loading…
Cancel
Save