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