Update nodemgmt-scripts.sh

This commit is contained in:
voltron committed 2023-04-28 22:31:13 -05:00
1 parent 95a4d6c841
commit 5f88e8ef51
1 file changed
+1 -1
+1 -1
View File
@@ -177,7 +177,7 @@ STATUS(){
srvcstotest="$(join_by " " ${!srvcs})" srvcstotest="$(join_by " " ${!srvcs})"
srvctst=(`${NCMD} systemctl is-active ${srvcstotest}`) srvctst=(`${NCMD} systemctl is-active ${srvcstotest}`)
echo -e "${srvcstotest}\n${srvctst}" echo -e "${srvcstotest}\n`${NCMD} systemctl is-active ${srvcstotest}`"
sr=0 sr=0
for srvc in "${!srvcs}"; do for srvc in "${!srvcs}"; do
[ "${srvc}" == "gitea" ] && [ "${NTYPE}" == "WEB" ] && [[ $($NCMD /sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) != *${WEB_HOSTS[0]}* ]] && NOGOCHK=false || NOGOCHK=true [ "${srvc}" == "gitea" ] && [ "${NTYPE}" == "WEB" ] && [[ $($NCMD /sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) != *${WEB_HOSTS[0]}* ]] && NOGOCHK=false || NOGOCHK=true