Browse Source
dns.la official acme script
dns.la official acme script
pull/4243/head
stephen
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
4 deletions
-
dnsapi/dns_la.sh
|
|
@ -83,11 +83,10 @@ add_record() { |
|
|
|
return 1 |
|
|
|
fi |
|
|
|
|
|
|
|
if _contains "$response" "\"code\":300"; then |
|
|
|
_record_id=$(printf "%s" "$response" | grep '"resultid"' | cut -d : -f 2 | cut -d , -f 1 | tr -d '\r' | tr -d '\n') |
|
|
|
_debug _record_id "$_record_id" |
|
|
|
if _contains "$response" "resultid" || _contains "$response" "\"code\":532"; then |
|
|
|
return 0 |
|
|
|
fi |
|
|
|
_contains "$response" "\"code\":300" |
|
|
|
return 1 |
|
|
|
} |
|
|
|
|
|
|
|
#################### Private functions below ################################## |
|
|
|