Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user