Update nodemgmt-scripts.sh
This commit is contained in:
@@ -1101,6 +1101,7 @@ NEWSITE(){
|
|||||||
|
|
||||||
SET-PERMISSIONS(){
|
SET-PERMISSIONS(){
|
||||||
if [ "${1}" = "gitea" ]; then
|
if [ "${1}" = "gitea" ]; then
|
||||||
|
nid=1
|
||||||
for nip in "${WEB_HOSTS[@]}"; do
|
for nip in "${WEB_HOSTS[@]}"; do
|
||||||
if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then
|
if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then
|
||||||
NCMD=''
|
NCMD=''
|
||||||
@@ -1122,6 +1123,7 @@ SET-PERMISSIONS(){
|
|||||||
elif [ "${2}" != "q" ]; then
|
elif [ "${2}" != "q" ]; then
|
||||||
echo -e "${idsCL[Red]}Node is down${idsCL[Default]}"
|
echo -e "${idsCL[Red]}Node is down${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
|
nid=`expr $nid + 1`
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
DIVIDER
|
DIVIDER
|
||||||
|
|||||||
Reference in New Issue
Block a user