mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-10 00:11:45 +00:00
fix formatting
This commit is contained in:
parent
a2038ab07e
commit
bd41f50ba5
@ -16,8 +16,8 @@ dns_yandex_add() {
|
|||||||
_PDD_credentials
|
_PDD_credentials
|
||||||
export _H1="PddToken: $PDD_Token"
|
export _H1="PddToken: $PDD_Token"
|
||||||
|
|
||||||
curDomain="$( echo "${fulldomain}" | awk -F. '{printf("%s.%s\n",$(NF-1), $NF)}' )"
|
curDomain="$(echo "${fulldomain}" | awk -F. '{printf("%s.%s\n",$(NF-1), $NF)}')"
|
||||||
curSubdomain="$( echo "${fulldomain}" | sed -e "s#$curDomain##" )"
|
curSubdomain="$(echo "${fulldomain}" | sed -e "s#$curDomain##")"
|
||||||
curData="domain=${curDomain}&type=TXT&subdomain=${curSubdomain}&ttl=360&content=${txtvalue}"
|
curData="domain=${curDomain}&type=TXT&subdomain=${curSubdomain}&ttl=360&content=${txtvalue}"
|
||||||
curUri="https://pddimp.yandex.ru/api2/admin/dns/add"
|
curUri="https://pddimp.yandex.ru/api2/admin/dns/add"
|
||||||
curResult="$(_post "${curData}" "${curUri}")"
|
curResult="$(_post "${curData}" "${curUri}")"
|
||||||
@ -30,10 +30,10 @@ dns_yandex_rm() {
|
|||||||
_debug "Calling: dns_yandex_rm() '${fulldomain}'"
|
_debug "Calling: dns_yandex_rm() '${fulldomain}'"
|
||||||
_PDD_credentials
|
_PDD_credentials
|
||||||
export _H1="PddToken: $PDD_Token"
|
export _H1="PddToken: $PDD_Token"
|
||||||
record_id=$( pdd_get_record_id "${fulldomain}" )
|
record_id=$(pdd_get_record_id "${fulldomain}")
|
||||||
|
|
||||||
curDomain="$( echo "${fulldomain}" | awk -F. '{printf("%s.%s\n",$(NF-1), $NF)}' )"
|
curDomain="$(echo "${fulldomain}" | awk -F. '{printf("%s.%s\n",$(NF-1), $NF)}')"
|
||||||
curSubdomain="$( echo "${fulldomain}" | sed -e "s#$curDomain##" )"
|
curSubdomain="$(echo "${fulldomain}" | sed -e "s#$curDomain##")"
|
||||||
curUri="https://pddimp.yandex.ru/api2/admin/dns/del"
|
curUri="https://pddimp.yandex.ru/api2/admin/dns/del"
|
||||||
curData="domain=${curDomain}&record_id=${record_id}"
|
curData="domain=${curDomain}&record_id=${record_id}"
|
||||||
curResult="$(_post "${curData}" "${curUri}")"
|
curResult="$(_post "${curData}" "${curUri}")"
|
||||||
@ -54,7 +54,7 @@ _PDD_credentials() {
|
|||||||
|
|
||||||
pdd_get_record_id() {
|
pdd_get_record_id() {
|
||||||
fulldomain="${1}"
|
fulldomain="${1}"
|
||||||
curDomain="$(echo "${fulldomain}" |awk -F. '{printf("%s.%s\n",$(NF-1), $NF)}' )"
|
curDomain="$(echo "${fulldomain}" | awk -F. '{printf("%s.%s\n",$(NF-1), $NF)}')"
|
||||||
curUri="https://pddimp.yandex.ru/api2/admin/dns/list?domain=${curDomain}"
|
curUri="https://pddimp.yandex.ru/api2/admin/dns/list?domain=${curDomain}"
|
||||||
curResult="$(_get "${curUri}")"
|
curResult="$(_get "${curUri}")"
|
||||||
echo "${curResult}" \
|
echo "${curResult}" \
|
||||||
|
Loading…
Reference in New Issue
Block a user