Browse Source
Merge pull request #2623 from GustavGenberg/patch-1
Fix dns_unoeuro add record error
pull/2662/head
neil
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
dnsapi/dns_unoeuro.sh
|
@ -52,7 +52,7 @@ dns_unoeuro_add() { |
|
|
fi |
|
|
fi |
|
|
_info "Adding record" |
|
|
_info "Adding record" |
|
|
|
|
|
|
|
|
if _uno_rest POST "my/products/$h/dns/records" "{\"name\":\"$fulldomain\",\"type\":\"TXT\",\"data\":\"$txtvalue\",\"ttl\":120}"; then |
|
|
|
|
|
|
|
|
if _uno_rest POST "my/products/$h/dns/records" "{\"name\":\"$fulldomain\",\"type\":\"TXT\",\"data\":\"$txtvalue\",\"ttl\":120,\"priority\":0}"; then |
|
|
if _contains "$response" "\"status\": 200" >/dev/null; then |
|
|
if _contains "$response" "\"status\": 200" >/dev/null; then |
|
|
_info "Added, OK" |
|
|
_info "Added, OK" |
|
|
return 0 |
|
|
return 0 |
|
|