Browse Source
dnsapi/dns_me: ignore "already exists" error for multi-domain support (#6830)
pull/6832/head
Ludwig
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
0 deletions
-
dnsapi/dns_me.sh
|
|
|
@ -53,6 +53,8 @@ dns_me_add() { |
|
|
|
_info "Added" |
|
|
|
#todo: check if the record takes effect |
|
|
|
return 0 |
|
|
|
elif printf -- "%s" "$response" | grep -q "already exists"; then |
|
|
|
_info "Record already exists, skipping." |
|
|
|
else |
|
|
|
_err "Add txt record error." |
|
|
|
return 1 |
|
|
|
|