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

update checks to haproxy.cfg

parent f45416ff
Branches
No related tags found
1 merge request!1296468-docs-and-harmonize
......@@ -73,13 +73,15 @@ esac
ph.require wget
cat $HAPROXYcfgfile >/dev/null
if [ $? -ne 0 ]; then
if [ ! -f $HAPROXYcfgfile ]; then
ph.abort "UNKNOWN: config file does not exist: $HAPROXYcfgfile"
fi
if ! cat $HAPROXYcfgfile >/dev/null 2>&1; then
ph.abort "UNKNOWN: unable to read ha proxy config $HAPROXYcfgfile ... $(ls -l $HAPROXYcfgfile)"
fi
cat $HAPROXYcfgfile | grep " mode .*http" >/dev/null
if [ $? -ne 0 ]; then
if ! cat $HAPROXYcfgfile | grep " mode .*http" >/dev/null; then
ph.abort "UNKNOWN: haproxy is not in http mode"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment