Skip to content
Snippets Groups Projects
Commit cd0a24a5 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch '6431-haproxy-fix' into 'master'

6431 haproxy fix

See merge request !98
parents 1605cfd1 166ab147
No related branches found
No related tags found
1 merge request!986431 haproxy fix
......@@ -7,6 +7,7 @@
# ----------------------------------------------------------------------
# 2021-12-14 v1.0 <axel.hahn@iml.unibe.ch> init
# 2022-10-21 v1.1 <axel.hahn@unibe.ch> remove grep: warning: stray \ before white space
# 2023-06-09 v1.2 <axel.hahn@unibe.ch> take first haproxy stats port on multiple binds
# ======================================================================
# full path to haproxy.cfg
......@@ -140,8 +141,8 @@ function getStatsBaseUrl(){
local mysection=$( detectStatsSection )
# read config
port=$( getCfgVar "bind" "${mysection}" | cut -f 2 -d ":")
auth=$( getCfgVar "stats" "${mysection}" | grep "^auth" | cut -f 2- -d " " )
port=$( getCfgVar "bind" "${mysection}" | cut -f 2 -d ":" | head -1 )
auth=$( getCfgVar "stats" "${mysection}" | grep "^auth" | cut -f 2- -d " " | head -1 )
# build url
url="$proto://"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment