From 3af14ae25ebc597bcfe9c95e438a4eb2ef1cbe9a Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 14 Oct 2022 23:04:11 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index b8d3d729..1ca50bb7 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1429,12 +1429,13 @@ SERVICE(){ fi done done + echo "Node type: ${NODE_TYPE}" if [ "$NODE_TYPE" = "NC" ]; then - var=`ls -l /mnt/Nextcloud-Data | wc -l` + mntpath=`ls -l /mnt/Nextcloud-Data | wc -l` elif [ "$NODE_TYPE" = "WEB" ]; then - var=`ls -l /mnt/web-data | wc -l` + mntpath=`ls -l /mnt/web-data | wc -l` fi - echo "Files found: $var" + echo "Files found: ${mntpath}" if [ $var -gt 2 ]; then echo -e "${idsCL[Green]}MOUNTED${idsCL[Default]}" else