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 fi
if [ "${3}" != "q" ]; then 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 fi
checkhost=$(CHECK_HOST ${nip}) checkhost=$(CHECK_HOST ${nip})
if [ "${checkhost}" != "false" ]; then if [ "${checkhost}" != "false" ]; then
@@ -1434,7 +1434,8 @@ SERVICE(){
elif [ "$NODE_TYPE" = "WEB" ]; then elif [ "$NODE_TYPE" = "WEB" ]; then
var=`ls -l /mnt/web-data | wc -l` var=`ls -l /mnt/web-data | wc -l`
fi fi
if [ $var -gt 1 ]; then echo "Files found: $var"
if [ $var -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]}"