Update nodemgmt-scripts.sh

This commit is contained in:
2022-10-14 23:00:59 -05:00
parent 1f98de30d1
commit 6be4d93ea4

View File

@@ -1413,7 +1413,7 @@ SERVICE(){
fi
if [ "${3}" != "q" ]; then
echo -en "Mounting drive on ${NM_NODETYPES[$NTYPE]}-Node${nid} ($nip)... ${idsCL[Default]}"
echo -en "Mounting drive on '$nip'... ${idsCL[Default]}"
fi
checkhost=$(CHECK_HOST ${nip})
if [ "${checkhost}" != "false" ]; then
@@ -1434,7 +1434,8 @@ SERVICE(){
elif [ "$NODE_TYPE" = "WEB" ]; then
var=`ls -l /mnt/web-data | wc -l`
fi
if [ $var -gt 1 ]; then
echo "Files found: $var"
if [ $var -gt 2 ]; then
echo -e "${idsCL[Green]}MOUNTED${idsCL[Default]}"
else
echo -e "${idsCL[Red]}NOT MOUNTED${idsCL[Default]}"