mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-08-27 04:05:07 +00:00
fix delete multiple records
This commit is contained in:
parent
2f15ad4be0
commit
f85348ba94
1 changed files with 6 additions and 4 deletions
|
|
@ -37,10 +37,12 @@ dns_yandex_rm() {
|
|||
record_id=$(pdd_get_record_id "${fulldomain}")
|
||||
_debug "Result: $record_id"
|
||||
|
||||
curUri="https://pddimp.yandex.ru/api2/admin/dns/del"
|
||||
curData="domain=${curDomain}&record_id=${record_id}"
|
||||
curResult="$(_post "${curData}" "${curUri}")"
|
||||
_debug "Result: $curResult"
|
||||
for rec_i in $record_id; do
|
||||
curUri="https://pddimp.yandex.ru/api2/admin/dns/del"
|
||||
curData="domain=${curDomain}&record_id=${rec_i}"
|
||||
curResult="$(_post "${curData}" "${curUri}")"
|
||||
_debug "Result: $curResult"
|
||||
done
|
||||
}
|
||||
|
||||
#################### Private functions below ##################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue