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

fix haproxy port: take the 1st line

parent 1605cfd1
Branches
No related tags found
1 merge request!986431 haproxy fix
...@@ -140,8 +140,8 @@ function getStatsBaseUrl(){ ...@@ -140,8 +140,8 @@ function getStatsBaseUrl(){
local mysection=$( detectStatsSection ) local mysection=$( detectStatsSection )
# read config # read config
port=$( getCfgVar "bind" "${mysection}" | cut -f 2 -d ":") port=$( getCfgVar "bind" "${mysection}" | cut -f 2 -d ":" | head -1 )
auth=$( getCfgVar "stats" "${mysection}" | grep "^auth" | cut -f 2- -d " " ) auth=$( getCfgVar "stats" "${mysection}" | grep "^auth" | cut -f 2- -d " " | head -1 )
# build url # build url
url="$proto://" url="$proto://"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment