From 6a41f068134dd881d0aa16b3ba97d71e2b5242f4 Mon Sep 17 00:00:00 2001 From: Mark Kelly Date: Wed, 27 Mar 2024 17:21:22 -0400 Subject: [PATCH] HPCC-31536 Hpcc-init status check find fails if dir is a symlink Signed-off-by: Mark Kelly --- initfiles/bash/etc/init.d/pid.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/initfiles/bash/etc/init.d/pid.sh b/initfiles/bash/etc/init.d/pid.sh index cb47a27f287..4fe47325a91 100644 --- a/initfiles/bash/etc/init.d/pid.sh +++ b/initfiles/bash/etc/init.d/pid.sh @@ -174,7 +174,7 @@ check_status() { checkSentinelFile() { FILEPATH="${runtime}/${compName}" if [[ -d ${FILEPATH} ]]; then - fileCheckOP=$(find ${FILEPATH} -maxdepth 1 -name "*senti*") + fileCheckOP=$(find -L ${FILEPATH} -maxdepth 1 -name "*senti*") [[ ! -z "${fileCheckOP}" ]] && return 1 fi return 0