mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 06:31:42 +00:00
use append mode to update recordsets
This commit is contained in:
parent
f37546e173
commit
375b8dceb7
@ -61,8 +61,7 @@ dns_misaka_add() {
|
|||||||
else
|
else
|
||||||
_info "Updating record"
|
_info "Updating record"
|
||||||
|
|
||||||
# todo: add existing challenges
|
_misaka_rest POST "zones/${_domain}/recordsets/${_sub_domain}/TXT?append=true" "{\"records\": [{\"value\": \"\\\"$txtvalue\\\"\"}],\"ttl\":1}"
|
||||||
_misaka_rest POST "zones/${_domain}/recordsets/${_sub_domain}/TXT" "{\"records\": [{\"value\": \"\\\"$txtvalue\\\"\"}],\"ttl\":1}"
|
|
||||||
if [ "$?" = "0" ] && _contains "$response" "$_sub_domain"; then
|
if [ "$?" = "0" ] && _contains "$response" "$_sub_domain"; then
|
||||||
_info "Updated!"
|
_info "Updated!"
|
||||||
#todo: check if the record takes effect
|
#todo: check if the record takes effect
|
||||||
|
Loading…
Reference in New Issue
Block a user