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]}"