Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
b41d40da
Commit
b41d40da
authored
Jul 09, 2022
by
lufi42
Browse files
Extended debug logging in dns_pleskxml_rm()
parent
ba3e088b
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_pleskxml.sh
View file @
b41d40da
...
...
@@ -152,13 +152,23 @@ dns_pleskxml_rm() {
_debug
"Got list of DNS TXT records for root domain '
$root_domain_name
':"
_debug
"
$reclist
"
rec
id
=
"
$(
rec
line
=
"
$(
_value
"
$reclist
"
|
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/'
)
"
_debug
"Got id from line:"
_debug
$recid
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
"Cannot delete TXT record. Exiting."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment