mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-06-15 19:12:53 +00:00
fixed kemplm.sh formatting
This commit is contained in:
parent
ca73e1f024
commit
7543d5220c
@ -23,11 +23,11 @@ kemplm_deploy() {
|
||||
_debug _cca "$_cca"
|
||||
_debug _cfullchain "$_cfullchain"
|
||||
|
||||
if ! _exists jq; then
|
||||
_err "jq not found"
|
||||
fi
|
||||
if ! _exists jq; then
|
||||
_err "jq not found"
|
||||
fi
|
||||
|
||||
# Rename wildcard certs, kemp accepts only alphanumeric names
|
||||
# Rename wildcard certs, kemp accepts only alphanumeric names
|
||||
_kemp_domain=$(echo "${_cdomain}" | sed 's/\*/wildcard/')
|
||||
_debug _kemp_domain "$_kemp_domain"
|
||||
|
||||
@ -76,7 +76,7 @@ kemplm_deploy() {
|
||||
|
||||
# Upload new certificate to Kemp Loadmaster
|
||||
_kemp_upload_cert=$(_mktemp)
|
||||
cat "${_cfullchain}" "${_ckey}" | base64 -w 0 > "${_kemp_upload_cert}"
|
||||
cat "${_cfullchain}" "${_ckey}" | base64 -w 0 >"${_kemp_upload_cert}"
|
||||
|
||||
_info "Uploading certificate to Kemp Loadmaster"
|
||||
_post_request="{\"cmd\": \"addcert\", \"apikey\": \"${DEPLOY_KEMP_TOKEN}\", \"replace\": ${_kemp_replace_cert}, \"cert\": \"${_kemp_domain}\", \"data\": \"$(cat ${_kemp_upload_cert})\"}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user