mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-06-25 11:12:45 +00:00
Travis 4
This commit is contained in:
parent
680106582b
commit
51668042e9
@ -122,7 +122,6 @@ dns_aruba_add() {
|
|||||||
_method="PUT"
|
_method="PUT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
_payload="{ \"IdDomain\": $domain_id, \"Type\": \"TXT\", \"Name\": \"$_sub_domain\", \"Content\": \"\\\"$txtvalue\\\"\" }"
|
_payload="{ \"IdDomain\": $domain_id, \"Type\": \"TXT\", \"Name\": \"$_sub_domain\", \"Content\": \"\\\"$txtvalue\\\"\" }"
|
||||||
|
|
||||||
_info "Adding record"
|
_info "Adding record"
|
||||||
@ -149,7 +148,6 @@ dns_aruba_rm() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
_sub_domain="_acme-challenge"
|
_sub_domain="_acme-challenge"
|
||||||
|
|
||||||
_debug "Getting TXT record to delete: $_sub_domain.$_domain."
|
_debug "Getting TXT record to delete: $_sub_domain.$_domain."
|
||||||
|
|
||||||
if ! _extract_record_id "$_sub_domain.$_domain"; then
|
if ! _extract_record_id "$_sub_domain.$_domain"; then
|
||||||
@ -199,11 +197,9 @@ _extract_record_id() {
|
|||||||
fi
|
fi
|
||||||
n=$(_math "$n" + 1)
|
n=$(_math "$n" + 1)
|
||||||
done
|
done
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
_aruba_authentication() {
|
_aruba_authentication() {
|
||||||
export _H1="Content-Type: application/x-www-form-urlencoded"
|
export _H1="Content-Type: application/x-www-form-urlencoded"
|
||||||
export _H2="Authorization-Key: $ARUBA_TK"
|
export _H2="Authorization-Key: $ARUBA_TK"
|
||||||
@ -225,11 +221,9 @@ _aruba_authentication() {
|
|||||||
|
|
||||||
ARUBA_CK="$access_token"
|
ARUBA_CK="$access_token"
|
||||||
_saveaccountconf ARUBA_CK "$ARUBA_CK"
|
_saveaccountconf ARUBA_CK "$ARUBA_CK"
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
_aruba_rest() {
|
_aruba_rest() {
|
||||||
m=$1
|
m=$1
|
||||||
ep="$2"
|
ep="$2"
|
||||||
@ -244,7 +238,6 @@ _aruba_rest() {
|
|||||||
export _H3="Authorization: Bearer $ARUBA_CK"
|
export _H3="Authorization: Bearer $ARUBA_CK"
|
||||||
export _H4="Authorization-Key: $ARUBA_TK"
|
export _H4="Authorization-Key: $ARUBA_TK"
|
||||||
export _H5="Accept: application/json"
|
export _H5="Accept: application/json"
|
||||||
|
|
||||||
_debug2 _H3 "$_H3"
|
_debug2 _H3 "$_H3"
|
||||||
_debug2 _H4 "$_H4"
|
_debug2 _H4 "$_H4"
|
||||||
if [ "$data" ] || [ "$m" = "POST" ] || [ "$m" = "PUT" ] || [ "$m" = "DELETE" ]; then
|
if [ "$data" ] || [ "$m" = "POST" ] || [ "$m" = "PUT" ] || [ "$m" = "DELETE" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user