mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-06-15 19:12:53 +00:00
fixed quoting in kemplm.sh
This commit is contained in:
parent
7543d5220c
commit
bf2e99efa6
@ -79,7 +79,8 @@ kemplm_deploy() {
|
||||
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})\"}"
|
||||
_post_data=$(cat "${_kemp_upload_cert}")
|
||||
_post_request="{\"cmd\": \"addcert\", \"apikey\": \"${DEPLOY_KEMP_TOKEN}\", \"replace\": ${_kemp_replace_cert}, \"cert\": \"${_kemp_domain}\", \"data\": \"${_post_data}\"}"
|
||||
_debug3 _post_request "${_post_request}"
|
||||
_kemp_post_result=$(_post "${_post_request}" "${DEPLOY_KEMP_URL}/accessv2")
|
||||
_retval=$?
|
||||
@ -99,5 +100,5 @@ kemplm_deploy() {
|
||||
|
||||
rm "${_kemp_upload_cert}"
|
||||
|
||||
return $retval
|
||||
return $_retval
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user