mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 06:31:42 +00:00
fix delete multiple records
This commit is contained in:
parent
2f15ad4be0
commit
f85348ba94
@ -37,10 +37,12 @@ dns_yandex_rm() {
|
|||||||
record_id=$(pdd_get_record_id "${fulldomain}")
|
record_id=$(pdd_get_record_id "${fulldomain}")
|
||||||
_debug "Result: $record_id"
|
_debug "Result: $record_id"
|
||||||
|
|
||||||
curUri="https://pddimp.yandex.ru/api2/admin/dns/del"
|
for rec_i in $record_id; do
|
||||||
curData="domain=${curDomain}&record_id=${record_id}"
|
curUri="https://pddimp.yandex.ru/api2/admin/dns/del"
|
||||||
curResult="$(_post "${curData}" "${curUri}")"
|
curData="domain=${curDomain}&record_id=${rec_i}"
|
||||||
_debug "Result: $curResult"
|
curResult="$(_post "${curData}" "${curUri}")"
|
||||||
|
_debug "Result: $curResult"
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
#################### Private functions below ##################################
|
#################### Private functions below ##################################
|
||||||
|
Loading…
Reference in New Issue
Block a user