Commit 5f9b57d3 authored by Tobias Mädel's avatar Tobias Mädel
Browse files

Cleaned up dns_doapi.sh

parent ddf77f10
...@@ -24,7 +24,7 @@ dns_doapi_add() { ...@@ -24,7 +24,7 @@ dns_doapi_add() {
_err "Please set DO_LETOKEN and try again." _err "Please set DO_LETOKEN and try again."
return 1 return 1
fi fi
_saveaccountconf_mutable DO_LETOKEN "$DO_LETOKEN" _saveaccountconf_mutable DO_LETOKEN "$DO_LETOKEN"
_info "Adding TXT record to ${fulldomain}" _info "Adding TXT record to ${fulldomain}"
response="$(_get "$DO_API?token=$DO_LETOKEN&domain=${fulldomain}&value=${txtvalue}")" response="$(_get "$DO_API?token=$DO_LETOKEN&domain=${fulldomain}&value=${txtvalue}")"
...@@ -46,7 +46,7 @@ dns_doapi_rm() { ...@@ -46,7 +46,7 @@ dns_doapi_rm() {
_err "Please set DO_LETOKEN and try again." _err "Please set DO_LETOKEN and try again."
return 1 return 1
fi fi
_saveaccountconf_mutable DO_LETOKEN "$DO_LETOKEN" _saveaccountconf_mutable DO_LETOKEN "$DO_LETOKEN"
_info "Deleting resource record $fulldomain" _info "Deleting resource record $fulldomain"
response="$(_get "$DO_API?token=$DO_LETOKEN&domain=${fulldomain}&action=delete")" response="$(_get "$DO_API?token=$DO_LETOKEN&domain=${fulldomain}&action=delete")"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment