Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
icinga-checks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
icinga-checks
Merge requests
!129
6468-docs-and-harmonize
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
6468-docs-and-harmonize
6468-docs-and-harmonize
into
master
Overview
0
Commits
9
Pipelines
0
Changes
1
Merged
6468-docs-and-harmonize
Hahn Axel (hahn)
requested to merge
6468-docs-and-harmonize
into
master
Jul 28, 2023
Overview
0
Commits
9
Pipelines
0
Changes
1
0
0
Merge request reports
Viewing commit
400243ce
Prev
Next
Show latest version
1 file
+
2
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
400243ce
check existance of file $HAPROXYcfgfile
· 400243ce
Hahn Axel (hahn)
authored
Jul 28, 2023
inc_haproxy_cfg.sh
+
2
−
1
View file @ 400243ce
Edit in single-file editor
Open in Web IDE
Show full file
@@ -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
Loading