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

small fixes

parent 12b750fa
No related branches found
No related tags found
1 merge request!302Update docs
......@@ -13,13 +13,13 @@
# 2022-08-31 v1.4 <axel.hahn@iml.unibe.ch> add help; shellfix corrections
# 2023-06-19 v1.5 <axel.hahn@unibe.ch> no more tmpfile
# 2023-07-27 v1.6 <axel.hahn@unibe.ch> update help page
# 2025-02-10 v1.3 <axel.hahn@unibe.ch> harden sourcing files
# 2025-02-10 v1.7 <axel.hahn@unibe.ch> harden sourcing files
# ======================================================================
# shellcheck source=/dev/null
. "$( dirname "$0" )/inc_pluginfunctions" || exit 1
export self_APPVERSION=1.6
export self_APPVERSION=1.7
# url=`hostname -f`/server-status
url=localhost/server-status
......
......@@ -36,7 +36,7 @@ OPTIONS:
default: ${sInstalldir}
EXAMPLE:
$_self -d /home/deployuser/imlbackup
$_self -d /home/deployuser/imldeployment-installer
set a custom directory und run the backup check
EOF
......
......@@ -9,6 +9,7 @@
# 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
# 2025-02-20 v1.4 <axel.hahn@unibe.ch> cfgrewriter returns exitcode 0 - haproxy check do not abort when sourcing on non haproxy systems
# ======================================================================
# full path to haproxy.cfg
......@@ -68,6 +69,7 @@ function cfgrewriter(){
echo $line | sed -e "s#^ *\([a-z\-]*\) *#\1=#g"
fi
done < $HAPROXYcfgfile
return 0
}
# ------------------------------------------------------------
......@@ -171,4 +173,4 @@ function getStatusUri(){
# INIT
if [ $HAPROXYdoCache = 0 -o $HAPROXYcfgfile -nt $HAPROXYdumpfile ]; then
cfgrewriter >$HAPROXYdumpfile
fi
\ No newline at end of file
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment