mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-04-30 09:52:46 +00:00
Extended debug logging in dns_pleskxml_rm()
This commit is contained in:
parent
ba3e088b23
commit
b41d40da40
@ -152,13 +152,23 @@ dns_pleskxml_rm() {
|
|||||||
_debug "Got list of DNS TXT records for root domain '$root_domain_name':"
|
_debug "Got list of DNS TXT records for root domain '$root_domain_name':"
|
||||||
_debug "$reclist"
|
_debug "$reclist"
|
||||||
|
|
||||||
recid="$(
|
recline="$(
|
||||||
_value "$reclist" |
|
_value "$reclist" |
|
||||||
grep "<host>${fulldomain}.</host>" |
|
grep "<host>${fulldomain}.</host>" |
|
||||||
grep "<value>${txtvalue}</value>" |
|
grep "<value>${txtvalue}</value>"
|
||||||
|
)"
|
||||||
|
|
||||||
|
_debug "Got line for <host>${fulldomain}.</host> and <value>${txtvalue}</value>:"
|
||||||
|
_debug "$recline"
|
||||||
|
|
||||||
|
recid="$(
|
||||||
|
_value "$recline" |
|
||||||
sed 's/^.*<id>\([0-9]\{1,\}\)<\/id>.*$/\1/'
|
sed 's/^.*<id>\([0-9]\{1,\}\)<\/id>.*$/\1/'
|
||||||
)"
|
)"
|
||||||
|
|
||||||
|
_debug "Got id from line:"
|
||||||
|
_debug $recid
|
||||||
|
|
||||||
if ! _value "$recid" | grep '^[0-9]\{1,\}$' >/dev/null; then
|
if ! _value "$recid" | grep '^[0-9]\{1,\}$' >/dev/null; then
|
||||||
_err "DNS records for root domain '${root_domain_name}' (Plesk ID ${root_domain_id}) + host '${sub_domain_name}' do not contain the TXT record '${txtvalue}'"
|
_err "DNS records for root domain '${root_domain_name}' (Plesk ID ${root_domain_id}) + host '${sub_domain_name}' do not contain the TXT record '${txtvalue}'"
|
||||||
_err "Cannot delete TXT record. Exiting."
|
_err "Cannot delete TXT record. Exiting."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user