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
4 additions and
1 deletions
-
dnsapi/dns_czechia.sh
|
|
@ -71,7 +71,10 @@ dns_czechia_rm() { |
|
|
txtvalue="$2" |
|
|
txtvalue="$2" |
|
|
_czechia_load_conf || return 1 |
|
|
_czechia_load_conf || return 1 |
|
|
_current_zone=$(_czechia_pick_zone "$fulldomain") |
|
|
_current_zone=$(_czechia_pick_zone "$fulldomain") |
|
|
[ -z "$_current_zone" ] && return 1 |
|
|
|
|
|
|
|
|
if [ -z "$_current_zone" ]; then |
|
|
|
|
|
_err "No matching zone found for $fulldomain. Please check CZ_Zones configuration." |
|
|
|
|
|
return 1 |
|
|
|
|
|
fi |
|
|
_cz=$(printf "%s" "$_current_zone" | _lower_case | sed 's/ //g') |
|
|
_cz=$(printf "%s" "$_current_zone" | _lower_case | sed 's/ //g') |
|
|
_tk=$(printf "%s" "$CZ_AuthorizationToken" | sed 's/ //g') |
|
|
_tk=$(printf "%s" "$CZ_AuthorizationToken" | sed 's/ //g') |
|
|
_url="$CZ_API_BASE/api/DNS/$_cz/TXT" |
|
|
_url="$CZ_API_BASE/api/DNS/$_cz/TXT" |
|
|
|