From 8254459404e9c7dd22bb0c2db583cf38430eae83 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 6 Apr 2020 19:10:42 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 2bcfb517..321ab84b 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1101,6 +1101,7 @@ NEWSITE(){ SET-PERMISSIONS(){ if [ "${1}" = "gitea" ]; then + nid=1 for nip in "${WEB_HOSTS[@]}"; do if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then NCMD='' @@ -1122,6 +1123,7 @@ SET-PERMISSIONS(){ elif [ "${2}" != "q" ]; then echo -e "${idsCL[Red]}Node is down${idsCL[Default]}" fi + nid=`expr $nid + 1` done else DIVIDER