From 13dc1dc481870e3e84e3c814189800770e316c3c Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Mon, 11 Mar 2024 15:28:55 +0100 Subject: [PATCH] fix detect of multiple names tcp process names --- includes/dbdetect.class.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/dbdetect.class.sh b/includes/dbdetect.class.sh index 1c33a5b..c049b2b 100644 --- a/includes/dbdetect.class.sh +++ b/includes/dbdetect.class.sh @@ -77,7 +77,7 @@ function dbdetect.exists(){ # --- check tcp process local tcpprocess; tcpprocess=$( ini.value "tcp-process" ) if [ -n "$tcpprocess" ]; then - if ! netstat -tulpen 2>/dev/null | grep "^tcp.*:${tcpport} .*/${tcpprocess}" >/dev/null; then + if ! netstat -tulpen 2>/dev/null | grep -E "^tcp.*:${tcpport} .*/(${tcpprocess})" >/dev/null; then # echo "No port tcp $tcpport available" dbdetect._wd "... $tcpprocess not found for tcp ${tcpport}" return 1 -- GitLab