mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-06-16 13:22:45 +00:00
generating certificate successfully
This commit is contained in:
parent
b548995191
commit
11966d08c9
@ -96,17 +96,17 @@ dns_mijn_host_rm() {
|
||||
api_url="$MIJN_HOST_API/domains/$_domain/dns"
|
||||
|
||||
# Get current records
|
||||
response="$(_get "$MIJN_HOST_API/domains/$_domain/dns")"
|
||||
response="$(_get "$api_url")"
|
||||
|
||||
updated_records=$(echo "$response" | jq '.data.records')
|
||||
|
||||
updated_records=$(echo "$updated_records" | jq --arg value "$txtvalue" 'map(select(.value != $value))')
|
||||
|
||||
# Build the new payload
|
||||
data="{\"records\": [$updated_records]}"
|
||||
data="{\"records\": $updated_records}"
|
||||
|
||||
# Use the _put method to update the records
|
||||
response="$(_post "$data" "$MIJN_HOST_API/domains/$_domain/dns" "" "PUT")"
|
||||
response="$(_post "$data" "$api_url" "" "PUT")"
|
||||
|
||||
if _contains "$response" "error"; then
|
||||
_err "Error updating TXT record: $response"
|
||||
|
Loading…
x
Reference in New Issue
Block a user