|
@ -117,7 +117,7 @@ haproxy_deploy() { |
|
|
# Create a temporary PEM file |
|
|
# Create a temporary PEM file |
|
|
_temppem="$(_mktemp)" |
|
|
_temppem="$(_mktemp)" |
|
|
_debug _temppem "${_temppem}" |
|
|
_debug _temppem "${_temppem}" |
|
|
cat "${_ckey}" "${_ccert}" "${_cca}" > "${_temppem}" |
|
|
|
|
|
|
|
|
cat "${_ckey}" "${_ccert}" "${_cca}" >"${_temppem}" |
|
|
_ret="$?" |
|
|
_ret="$?" |
|
|
|
|
|
|
|
|
# Check that we could create the temporary file |
|
|
# Check that we could create the temporary file |
|
@ -130,7 +130,7 @@ haproxy_deploy() { |
|
|
# Move PEM file into place |
|
|
# Move PEM file into place |
|
|
_info "Moving new certificate into place" |
|
|
_info "Moving new certificate into place" |
|
|
_debug _pem "${_pem}" |
|
|
_debug _pem "${_pem}" |
|
|
cat "${_temppem}" > "${_pem}" |
|
|
|
|
|
|
|
|
cat "${_temppem}" >"${_pem}" |
|
|
_ret=$? |
|
|
_ret=$? |
|
|
|
|
|
|
|
|
# Clean up temp file |
|
|
# Clean up temp file |
|
@ -146,7 +146,7 @@ haproxy_deploy() { |
|
|
if [ "${Le_Deploy_haproxy_issuer}" = "yes" ]; then |
|
|
if [ "${Le_Deploy_haproxy_issuer}" = "yes" ]; then |
|
|
_info "Updating .issuer file" |
|
|
_info "Updating .issuer file" |
|
|
_debug _issuer "${_issuer}" |
|
|
_debug _issuer "${_issuer}" |
|
|
cat "${_cca}" > "${_issuer}" |
|
|
|
|
|
|
|
|
cat "${_cca}" >"${_issuer}" |
|
|
_ret="$?" |
|
|
_ret="$?" |
|
|
|
|
|
|
|
|
if [ "${_ret}" != "0" ]; then |
|
|
if [ "${_ret}" != "0" ]; then |
|
|