From b707611a3d4fdc7a87d009cd021fbe8803df91db Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 14 Oct 2022 23:34:16 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index f97b5772..86a53d38 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1431,6 +1431,18 @@ SERVICE(){ echo -e "${idsCL[Red]}NOT MOUNTED ($mntpath)${idsCL[Default]}" fi fi + + if [ "$nip" = "10.10.1.43" ]; then + echo -en "Mounting drive on '$nip'... ${idsCL[Default]}" + mntpath="/mnt/Nextcloud-Data" + ${NCMD} "test -e ${mntpath}/mounted" + if [ $? -eq 0 ]; then + echo -e "${idsCL[Green]}MOUNTED ($mntpath)${idsCL[Default]}" + else + echo -e "${idsCL[Red]}NOT MOUNTED ($mntpath)${idsCL[Default]}" + fi + fi + elif [ "${3}" != "q" ]; then echo -e "${idsCL[Red]}Node is Down${idsCL[Default]}" fi