mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 13:11:41 +00:00
Cleaned up dns_doapi.sh
This commit is contained in:
parent
127532c226
commit
ddf77f10e9
@ -26,13 +26,13 @@ dns_doapi_add() {
|
|||||||
fi
|
fi
|
||||||
_saveaccountconf_mutable DO_LETOKEN "$DO_LETOKEN"
|
_saveaccountconf_mutable DO_LETOKEN "$DO_LETOKEN"
|
||||||
|
|
||||||
_info "Adding TXT record to ${_domain} as ${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}")"
|
||||||
if _contains "${response}" 'success'; then
|
if _contains "${response}" 'success'; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
_err "Could not create resource record, check logs"
|
_err "Could not create resource record, check logs"
|
||||||
_err $response
|
_err "${response}"
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -54,6 +54,6 @@ dns_doapi_rm() {
|
|||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
_err "Could not delete resource record, check logs"
|
_err "Could not delete resource record, check logs"
|
||||||
_err $response
|
_err "${response}"
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user