Update nodemgmt-scripts.sh
This commit is contained in:
@@ -1424,9 +1424,9 @@ SERVICE(){
|
|||||||
elif [[ "${WEBHOSTS}" == *"${nip}"* ]]; then
|
elif [[ "${WEBHOSTS}" == *"${nip}"* ]]; then
|
||||||
mntpath="/mnt/web-data"
|
mntpath="/mnt/web-data"
|
||||||
fi
|
fi
|
||||||
mntpathcnt=`ls -l ${mntpath} | wc -l`
|
mntpathcnt=`${NCMD} ls -l ${mntpath} | wc -l`
|
||||||
echo "Files found in ($mntpath): ${mntpathcnt}"
|
echo "Files found in ($mntpath): ${mntpathcnt}"
|
||||||
if [ $var -gt 2 ]; then
|
if [ $mntpathcnt -gt 2 ]; then
|
||||||
echo -e "${idsCL[Green]}MOUNTED${idsCL[Default]}"
|
echo -e "${idsCL[Green]}MOUNTED${idsCL[Default]}"
|
||||||
else
|
else
|
||||||
echo -e "${idsCL[Red]}NOT MOUNTED${idsCL[Default]}"
|
echo -e "${idsCL[Red]}NOT MOUNTED${idsCL[Default]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user