Browse Source

fix dns_opnsense.sh error deleting record

pull/4958/head
kanata3249 2 years ago
committed by GitHub
parent
commit
1c04f8b94b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      dnsapi/dns_opnsense.sh

3
dnsapi/dns_opnsense.sh

@ -109,7 +109,8 @@ rm_record() {
_uuid=""
if _existingchallenge "$_domain" "$_host" "$new_challenge"; then
# Delete
if _opns_rest "POST" "/record/delRecord/${_uuid}" "\{\}"; then
if _opns_rest "POST" "/record/delRecord/${_uuid}" "{}"; then
_return_str="$response"
if echo "$_return_str" | _egrep_o "\"result\":\"deleted\"" >/dev/null; then
_opns_rest "POST" "/service/reconfigure" "{}"
_debug "Record deleted"

Loading…
Cancel
Save