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

check existance of file $HAPROXYcfgfile

parent a9e63918
No related branches found
No related tags found
1 merge request!1296468-docs-and-harmonize
......@@ -8,6 +8,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
# 2023-07-28 v1.3 <axel.hahn@unibe.ch> check existance of file $HAPROXYcfgfile
# ======================================================================
# full path to haproxy.cfg
......@@ -54,7 +55,7 @@ HAPROXYdoCache=0
function cfgrewriter(){
local _section=
IFS=''
while read line
test -f $HAPROXYcfgfile && while read line
do
echo $line | grep "^[a-z]" >/dev/null
if [ $? -eq 0 ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment