mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 13:11:41 +00:00
add newline and checks
This commit is contained in:
parent
bd41f50ba5
commit
8f3a3b293d
@ -13,7 +13,7 @@ dns_yandex_add() {
|
|||||||
fulldomain="${1}"
|
fulldomain="${1}"
|
||||||
txtvalue="${2}"
|
txtvalue="${2}"
|
||||||
_debug "Calling: dns_yandex_add() '${fulldomain}' '${txtvalue}'"
|
_debug "Calling: dns_yandex_add() '${fulldomain}' '${txtvalue}'"
|
||||||
_PDD_credentials
|
_PDD_credentials || exit 1
|
||||||
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)}')"
|
||||||
@ -28,7 +28,7 @@ dns_yandex_add() {
|
|||||||
dns_yandex_rm() {
|
dns_yandex_rm() {
|
||||||
fulldomain="${1}"
|
fulldomain="${1}"
|
||||||
_debug "Calling: dns_yandex_rm() '${fulldomain}'"
|
_debug "Calling: dns_yandex_rm() '${fulldomain}'"
|
||||||
_PDD_credentials
|
_PDD_credentials || exit 1
|
||||||
export _H1="PddToken: $PDD_Token"
|
export _H1="PddToken: $PDD_Token"
|
||||||
record_id=$(pdd_get_record_id "${fulldomain}")
|
record_id=$(pdd_get_record_id "${fulldomain}")
|
||||||
|
|
||||||
@ -67,3 +67,4 @@ for r in rs:
|
|||||||
exit
|
exit
|
||||||
"
|
"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user