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