Update deploy/haproxy.sh

Co-authored-by: Matt Simerson <matt@tnpi.net>
This commit is contained in:
Laurent Grawet 2025-04-28 17:02:16 +02:00 committed by GitHub
parent 0d5e66f49a
commit a6e689f9be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -329,7 +329,7 @@ haproxy_deploy() {
if _exists socat; then if _exists socat; then
export IFS=',' export IFS=','
for _statssock in ${Le_Deploy_haproxy_stats_socket}; do for _statssock in ${Le_Deploy_haproxy_stats_socket}; do
# look for the certificate on the stats socket, to choVse between updating or creating one # look for the certificate on the stats socket, to choose between updating or creating one
_socat_cert_cmd="echo '${_cmdpfx}show ssl cert' | socat '${_statssock}' - | grep -q '^${_pem}$'" _socat_cert_cmd="echo '${_cmdpfx}show ssl cert' | socat '${_statssock}' - | grep -q '^${_pem}$'"
_debug _socat_cert_cmd "${_socat_cert_cmd}" _debug _socat_cert_cmd "${_socat_cert_cmd}"
eval "${_socat_cert_cmd}" eval "${_socat_cert_cmd}"