mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-04 13:31:45 +00:00
fix ovh
This commit is contained in:
parent
6d5e7826ae
commit
2befb5e784
@ -114,8 +114,7 @@ _initAuth() {
|
|||||||
|
|
||||||
_info "Checking authentication"
|
_info "Checking authentication"
|
||||||
|
|
||||||
response="$(_ovh_rest GET "domain")"
|
if ! _ovh_rest GET "domain" || _contains "$response" "INVALID_CREDENTIAL"; then
|
||||||
if _contains "$response" "INVALID_CREDENTIAL"; then
|
|
||||||
_err "The consumer key is invalid: $OVH_CK"
|
_err "The consumer key is invalid: $OVH_CK"
|
||||||
_err "Please retry to create a new one."
|
_err "Please retry to create a new one."
|
||||||
_clearaccountconf OVH_CK
|
_clearaccountconf OVH_CK
|
||||||
@ -150,8 +149,7 @@ dns_ovh_add() {
|
|||||||
if _contains "$response" "$txtvalue"; then
|
if _contains "$response" "$txtvalue"; then
|
||||||
_ovh_rest POST "domain/zone/$_domain/refresh"
|
_ovh_rest POST "domain/zone/$_domain/refresh"
|
||||||
_debug "Refresh:$response"
|
_debug "Refresh:$response"
|
||||||
_info "Added, sleeping 10 seconds"
|
_info "Added"
|
||||||
sleep 10
|
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -303,8 +301,8 @@ _ovh_rest() {
|
|||||||
response="$(_get "$_ovh_url")"
|
response="$(_get "$_ovh_url")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ] || _contains "$response" "INVALID_CREDENTIAL"; then
|
||||||
_err "error $ep"
|
_err "error $response"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
_debug2 response "$response"
|
_debug2 response "$response"
|
||||||
|
Loading…
Reference in New Issue
Block a user