mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-24 14:11:42 +00:00
return error if any removal failed
This commit is contained in:
parent
1cb6e9e7d0
commit
cdec38ba12
@ -30,14 +30,16 @@ dns_do_rm() {
|
|||||||
_cookiejar="$(_mktemp)"
|
_cookiejar="$(_mktemp)"
|
||||||
if _dns_do_authenticate; then
|
if _dns_do_authenticate; then
|
||||||
if _dns_do_list_rrs; then
|
if _dns_do_list_rrs; then
|
||||||
|
_dns_do_had_error=0
|
||||||
for _rrid in ${_rr_list}; do
|
for _rrid in ${_rr_list}; do
|
||||||
_info "Deleting resource record $_rrid for $_domain"
|
_info "Deleting resource record $_rrid for $_domain"
|
||||||
_dns_do_soap deleteRR origin "${_domain}" rrid "${_rrid}"
|
_dns_do_soap deleteRR origin "${_domain}" rrid "${_rrid}"
|
||||||
if ! _contains "${response}" '>success<'; then
|
if ! _contains "${response}" '>success<'; then
|
||||||
|
_dns_do_had_error=1
|
||||||
_err "Could not delete resource record for ${_domain}, id ${_rrid}"
|
_err "Could not delete resource record for ${_domain}, id ${_rrid}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
return 0
|
return _dns_do_had_error
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user