mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 21:21:42 +00:00
Minor fixes.
This commit is contained in:
parent
d0f5aece5f
commit
17fbfd14db
@ -17,7 +17,7 @@ dns_duckdns_add() {
|
|||||||
txtvalue=$2
|
txtvalue=$2
|
||||||
|
|
||||||
# We'll extract the domain/username from full domain
|
# We'll extract the domain/username from full domain
|
||||||
DuckDNS_domain=$(printf "%s\n" "$fulldomain" | rev | cut -d \. -f 3 | rev)
|
DuckDNS_domain=$(printf "%s\n" "$fulldomain" | rev | cut -d . -f 3 | rev)
|
||||||
|
|
||||||
if [ -z "$DuckDNS_domain" ]; then
|
if [ -z "$DuckDNS_domain" ]; then
|
||||||
_err "Error extracting the domain."
|
_err "Error extracting the domain."
|
||||||
|
@ -76,7 +76,7 @@ dns_namecom_rm() {
|
|||||||
if _namecom_rest GET "dns/list/$_domain"; then
|
if _namecom_rest GET "dns/list/$_domain"; then
|
||||||
retcode=$(printf "%s\n" "$response" | _egrep_o "\"code\":100")
|
retcode=$(printf "%s\n" "$response" | _egrep_o "\"code\":100")
|
||||||
if [ ! -z "$retcode" ]; then
|
if [ ! -z "$retcode" ]; then
|
||||||
_record_id=$(printf "%s\n" "$response" | _egrep_o "\"record_id\":\"[0-9]+\",\"name\":\"$fulldomain\",\"type\":\"TXT\"" | cut -d : -f 2 | cut -d \" -f 2)
|
_record_id=$(printf "%s\n" "$response" | _egrep_o "\"record_id\":\"[0-9]+\",\"name\":\"$fulldomain\",\"type\":\"TXT\"" | cut -d \" -f 4)
|
||||||
_debug record_id "$_record_id"
|
_debug record_id "$_record_id"
|
||||||
_info "Successfully retrieved the record id for ACME challenge."
|
_info "Successfully retrieved the record id for ACME challenge."
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user