Browse Source
Update dnsapi/dns_czechia.sh
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
pull/6764/head
CZECHIA-COM
6 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
9 additions and
0 deletions
-
dnsapi/dns_czechia.sh
|
|
|
@ -97,7 +97,16 @@ dns_czechia_rm() { |
|
|
|
export _H1="Content-Type: application/json" |
|
|
|
export _H2="AuthorizationToken: $_tk" |
|
|
|
_res="$(_post "$_body" "$_url" "" "DELETE")" |
|
|
|
_post_exit="$?" |
|
|
|
_debug2 "Response: $_res" |
|
|
|
if [ "$_post_exit" -ne 0 ]; then |
|
|
|
_err "CZECHIA DNS API DELETE request failed for $_fd: exit code $_post_exit, response: $_res" |
|
|
|
return 1 |
|
|
|
fi |
|
|
|
if _contains "$_res" '"isError":true'; then |
|
|
|
_err "CZECHIA DNS API reported an error while deleting TXT for $_fd: $_res" |
|
|
|
return 1 |
|
|
|
fi |
|
|
|
return 0 |
|
|
|
} |
|
|
|
|
|
|
|
|