From 2636b1d48640a993171095d65c67210d49091927 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Wed, 7 Jun 2023 15:42:08 +0200
Subject: [PATCH] source config file

---
 check_psqlserver | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/check_psqlserver b/check_psqlserver
index 40ca1f9..0438326 100755
--- a/check_psqlserver
+++ b/check_psqlserver
@@ -205,6 +205,8 @@ if [ $? -ne 0 ]; then
     ph.abort "PSQL access not possible yet. You need to install the monitoring user first: as root execute `basename $0` -i"
 fi
 
+. "${cfgfile}"
+
 # ----------------------------------------------------------------------
 
 sMode=$(ph.getValueWithParam '' m "$@")
-- 
GitLab