From 096cb863125804c38dfd099056be55c8fd50b7b9 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 14 Oct 2022 23:18:37 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index eff2bec0..20ec2b41 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1424,9 +1424,9 @@ SERVICE(){ elif [[ "${WEBHOSTS}" == *"${nip}"* ]]; then mntpath="/mnt/web-data" fi - mntpathcnt=`ls -l ${mntpath} | wc -l` + mntpathcnt=`${NCMD} ls -l ${mntpath} | wc -l` echo "Files found in ($mntpath): ${mntpathcnt}" - if [ $var -gt 2 ]; then + if [ $mntpathcnt -gt 2 ]; then echo -e "${idsCL[Green]}MOUNTED${idsCL[Default]}" else echo -e "${idsCL[Red]}NOT MOUNTED${idsCL[Default]}"