use append mode to update recordsets

This commit is contained in:
Siyuan Miao committed 2019-12-14 10:44:57 +08:00
1 parent f37546e173
commit 375b8dceb7
1 file changed
+1 -2
+1 -2
View File
@@ -61,8 +61,7 @@ dns_misaka_add() {
else
_info "Updating record"
# todo: add existing challenges
_misaka_rest POST "zones/${_domain}/recordsets/${_sub_domain}/TXT" "{\"records\": [{\"value\": \"\\\"$txtvalue\\\"\"}],\"ttl\":1}"
_misaka_rest POST "zones/${_domain}/recordsets/${_sub_domain}/TXT?append=true" "{\"records\": [{\"value\": \"\\\"$txtvalue\\\"\"}],\"ttl\":1}"
if [ "$?" = "0" ] && _contains "$response" "$_sub_domain"; then
_info "Updated!"
#todo: check if the record takes effect
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.