mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-04-30 01:32:44 +00:00
Merge branch 'dev' into multideploy-yaml
This commit is contained in:
commit
c6c672b445
2
.github/workflows/dockerhub.yml
vendored
2
.github/workflows/dockerhub.yml
vendored
@ -44,6 +44,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: checkout code
|
- name: checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v2
|
||||||
- name: Extract Docker metadata
|
- name: Extract Docker metadata
|
||||||
|
@ -23,7 +23,11 @@ ARG AUTO_UPGRADE=1
|
|||||||
ENV AUTO_UPGRADE=$AUTO_UPGRADE
|
ENV AUTO_UPGRADE=$AUTO_UPGRADE
|
||||||
|
|
||||||
#Install
|
#Install
|
||||||
COPY ./ /install_acme.sh/
|
COPY ./acme.sh /install_acme.sh/acme.sh
|
||||||
|
COPY ./deploy /install_acme.sh/deploy
|
||||||
|
COPY ./dnsapi /install_acme.sh/dnsapi
|
||||||
|
COPY ./notify /install_acme.sh/notify
|
||||||
|
|
||||||
RUN cd /install_acme.sh && ([ -f /install_acme.sh/acme.sh ] && /install_acme.sh/acme.sh --install || curl https://get.acme.sh | sh) && rm -rf /install_acme.sh/
|
RUN cd /install_acme.sh && ([ -f /install_acme.sh/acme.sh ] && /install_acme.sh/acme.sh --install || curl https://get.acme.sh | sh) && rm -rf /install_acme.sh/
|
||||||
|
|
||||||
|
|
||||||
|
2
acme.sh
2
acme.sh
@ -5986,7 +5986,7 @@ _installcert() {
|
|||||||
); then
|
); then
|
||||||
_info "$(__green "Reload successful")"
|
_info "$(__green "Reload successful")"
|
||||||
else
|
else
|
||||||
_err "Reload error for: $Le_Domain"
|
_err "Reload error for: $_main_domain"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -116,6 +116,30 @@ ruckus_deploy() {
|
|||||||
_H2="X-CSRF-Token: $(_response_header 'HTTP_X_CSRF_TOKEN')"
|
_H2="X-CSRF-Token: $(_response_header 'HTTP_X_CSRF_TOKEN')"
|
||||||
export _H2
|
export _H2
|
||||||
|
|
||||||
|
if _isRSA "$_ckey" >/dev/null 2>&1; then
|
||||||
|
_debug "Using RSA certificate."
|
||||||
|
else
|
||||||
|
_info "Verifying ECC certificate support."
|
||||||
|
|
||||||
|
_ul_version="$(_get_unleashed_version)"
|
||||||
|
if [ -z "$_ul_version" ]; then
|
||||||
|
_err "Your controller doesn't support ECC certificates. Please deploy an RSA certificate."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
_ul_version_major="$(echo "$_ul_version" | cut -d . -f 1)"
|
||||||
|
_ul_version_minor="$(echo "$_ul_version" | cut -d . -f 2)"
|
||||||
|
if [ "$_ul_version_major" -lt "200" ]; then
|
||||||
|
_err "ZoneDirector doesn't support ECC certificates. Please deploy an RSA certificate."
|
||||||
|
return 1
|
||||||
|
elif [ "$_ul_version_minor" -lt "13" ]; then
|
||||||
|
_err "Unleashed $_ul_version_major.$_ul_version_minor doesn't support ECC certificates. Please deploy an RSA certificate or upgrade to Unleashed 200.13+."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
_debug "ECC certificates OK for Unleashed $_ul_version_major.$_ul_version_minor."
|
||||||
|
fi
|
||||||
|
|
||||||
_info "Uploading certificate"
|
_info "Uploading certificate"
|
||||||
_post_upload "uploadcert" "$_cfullchain"
|
_post_upload "uploadcert" "$_cfullchain"
|
||||||
|
|
||||||
@ -145,6 +169,10 @@ _response_cookie() {
|
|||||||
_response_header 'Set-Cookie' | sed 's/;.*//'
|
_response_header 'Set-Cookie' | sed 's/;.*//'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_get_unleashed_version() {
|
||||||
|
_post '<ajax-request action="getstat" comp="system"><sysinfo/></ajax-request>' "$_base_url/_cmdstat.jsp" | _egrep_o "version-num=\"[^\"]*\"" | cut -d '"' -f 2
|
||||||
|
}
|
||||||
|
|
||||||
_post_upload() {
|
_post_upload() {
|
||||||
_post_action="$1"
|
_post_action="$1"
|
||||||
_post_file="$2"
|
_post_file="$2"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user