mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-10 19:02:47 +00:00
yet more formatting
This commit is contained in:
parent
9fdd77875f
commit
4f233cdb19
@ -121,26 +121,26 @@ _pleskxml_newline='
|
|||||||
# (otherwise printf repeats the string causing the API call to fail)
|
# (otherwise printf repeats the string causing the API call to fail)
|
||||||
|
|
||||||
_pleskxml_tplt_get_domain_id="<packet><webspace><get><filter><name>%s</name></filter><dataset></dataset></get></webspace></packet>"
|
_pleskxml_tplt_get_domain_id="<packet><webspace><get><filter><name>%s</name></filter><dataset></dataset></get></webspace></packet>"
|
||||||
# Convert domain name to a Plesk internal domain ID
|
# Convert domain name to a Plesk internal domain ID
|
||||||
# Args:
|
# Args:
|
||||||
# the domain name to query
|
# the domain name to query
|
||||||
|
|
||||||
_pleskxml_tplt_add_txt_record="<packet><dns><add_rec><site-id>%s</site-id><type>TXT</type><host>%s</host><value>%s</value></add_rec></dns></packet>"
|
_pleskxml_tplt_add_txt_record="<packet><dns><add_rec><site-id>%s</site-id><type>TXT</type><host>%s</host><value>%s</value></add_rec></dns></packet>"
|
||||||
# Adds a TXT record to a domain
|
# Adds a TXT record to a domain
|
||||||
# Args:
|
# Args:
|
||||||
# the Plesk internal domain ID for the domain
|
# the Plesk internal domain ID for the domain
|
||||||
# the "host" entry within the domain, to add this to (eg '_acme_challenge')
|
# the "host" entry within the domain, to add this to (eg '_acme_challenge')
|
||||||
# the TXT record value
|
# the TXT record value
|
||||||
|
|
||||||
_pleskxml_tplt_rmv_dns_record="<packet><dns><del_rec><filter><id>%s</id></filter></del_rec></dns></packet>"
|
_pleskxml_tplt_rmv_dns_record="<packet><dns><del_rec><filter><id>%s</id></filter></del_rec></dns></packet>"
|
||||||
# Adds a TXT record to a domain
|
# Adds a TXT record to a domain
|
||||||
# Args:
|
# Args:
|
||||||
# the Plesk internal ID for the dns record to delete
|
# the Plesk internal ID for the dns record to delete
|
||||||
|
|
||||||
_pleskxml_tplt_get_dns_records="<packet><dns><get_rec><filter><site-id>%s</site-id></filter></get_rec></dns></packet>"
|
_pleskxml_tplt_get_dns_records="<packet><dns><get_rec><filter><site-id>%s</site-id></filter></get_rec></dns></packet>"
|
||||||
# Gets all DNS records for a Plesk domain ID
|
# Gets all DNS records for a Plesk domain ID
|
||||||
# Args:
|
# Args:
|
||||||
# the domain id to query
|
# the domain id to query
|
||||||
|
|
||||||
|
|
||||||
############ Define public functions #####################
|
############ Define public functions #####################
|
||||||
@ -812,7 +812,7 @@ _pleskxml_rmv_txt_record() {
|
|||||||
| grep -F "<host>${2:-<NON_MATCHING_GARBAGE>}." \
|
| grep -F "<host>${2:-<NON_MATCHING_GARBAGE>}." \
|
||||||
| grep -F "<value>${3:-<NON_MATCHING_GARBAGE>}</value>" \
|
| grep -F "<value>${3:-<NON_MATCHING_GARBAGE>}</value>" \
|
||||||
| sed -E 's/(^[[:space:]]+|[[:space:]]+$)//g' \
|
| sed -E 's/(^[[:space:]]+|[[:space:]]+$)//g' \
|
||||||
32m | tr -d '\n'
|
| tr -d '\n'
|
||||||
)"
|
)"
|
||||||
# Run 2 separate GREP filters, because the host and value order isn't mandatory in the API return data
|
# Run 2 separate GREP filters, because the host and value order isn't mandatory in the API return data
|
||||||
# ands this avoids regex and escaping which is easier
|
# ands this avoids regex and escaping which is easier
|
||||||
|
Loading…
x
Reference in New Issue
Block a user