mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 06:31:42 +00:00
bail out on no access
This commit is contained in:
parent
c58465d630
commit
f254bb39a5
@ -16,7 +16,7 @@ dns_yandex_add() {
|
|||||||
_PDD_credentials || return 1
|
_PDD_credentials || return 1
|
||||||
export _H1="PddToken: $PDD_Token"
|
export _H1="PddToken: $PDD_Token"
|
||||||
|
|
||||||
_PDD_get_domain "$fulldomain"
|
_PDD_get_domain "$fulldomain" || return 1
|
||||||
_debug "Found suitable domain in pdd: $curDomain"
|
_debug "Found suitable domain in pdd: $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"
|
||||||
@ -33,7 +33,7 @@ dns_yandex_rm() {
|
|||||||
record_id=$(pdd_get_record_id "${fulldomain}")
|
record_id=$(pdd_get_record_id "${fulldomain}")
|
||||||
_debug "Result: $record_id"
|
_debug "Result: $record_id"
|
||||||
|
|
||||||
_PDD_get_domain "$fulldomain"
|
_PDD_get_domain "$fulldomain" || return 1
|
||||||
_debug "Found suitable domain in pdd: $curDomain"
|
_debug "Found suitable domain in pdd: $curDomain"
|
||||||
|
|
||||||
curUri="https://pddimp.yandex.ru/api2/admin/dns/del"
|
curUri="https://pddimp.yandex.ru/api2/admin/dns/del"
|
||||||
|
Loading…
Reference in New Issue
Block a user