From a61ab7133f4e173439ad6f7b9376e9f314dc2009 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Mon, 11 Mar 2024 15:43:08 +0100 Subject: [PATCH] fix check binaries + tcp processname --- includes/dbdetect.class.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/dbdetect.class.sh b/includes/dbdetect.class.sh index 2a12e9d..0ec311b 100644 --- a/includes/dbdetect.class.sh +++ b/includes/dbdetect.class.sh @@ -108,7 +108,7 @@ function dbdetect.exists(){ local binary; binary=$( ini.value "binary" ) if [ -n "${binary}" ]; then for mybinary in $( echo "${binary}" | tr "," " " ); do - if ! dbdetect._requireProcess "$mybinary" 1 >/dev/null 2>&1; then + if ! which "$mybinary" >/dev/null 2>&1; then dbdetect._wd "... Missing binary: ${mybinary}" return 1 fi @@ -119,7 +119,7 @@ function dbdetect.exists(){ # --- check process local process; process=$( ini.value "process" ) if [ -n "${process}" ]; then - if ! j_requireProcess "${process}" 1 >/dev/null; then + if ! dbdetect._requireProcess "${process}" 1 >/dev/null; then dbdetect._wd "... Missing process: ${process}" return 1 fi -- GitLab