From 4cf7dcdf0b62b114b589114ac4def259e5a85652 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Mon, 12 Jun 2023 15:40:17 +0200 Subject: [PATCH] update mysqlserver --- check_mysqlserver | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_mysqlserver b/check_mysqlserver index de7b3b9..a4217bb 100755 --- a/check_mysqlserver +++ b/check_mysqlserver @@ -242,10 +242,10 @@ fi # --- check installation -grep $myuser $cfgfile >/dev/null 2>/dev/null -if [ $? -ne 0 ]; then +if ! grep $myuser $cfgfile >/dev/null 2>&1; then ph.abort "MYSQL access not possible yet. You need to install the monitoring user first: as root execute $(basename $0) -i" fi +. "${cfgfile}" # ---------------------------------------------------------------------- -- GitLab