This commit is contained in:
2023-04-28 22:35:48 -05:00
parent ffa50c2570
commit e71c2b1d09
2 changed files with 3 additions and 5 deletions

View File

@@ -1,9 +1,9 @@
#!/usr/bin/env bash
VERS='4.5.15-04262023'
VERS='4.5.17-04262023'
NODETYPES=WEB
# NODETYPES=MYSQL,LB,WEB,NC,WPD,LPD,MM,PW
# NODETYPES=WEB
NODETYPES=MYSQL,LB,WEB,NC,WPD,LPD,MM,PW
MYSQLHOSTS=10.10.1.51,10.10.1.52
WEBHOSTS=10.10.1.121,10.10.1.122
LBHOSTS=10.10.10.81,10.10.10.82

View File

@@ -175,9 +175,7 @@ STATUS(){
if [ "${ST_ACTION}" != "dockers" ]; then
srvcs=${NTYPE}_SERVICES_CHECK[@];
srvcstotest="$(join_by " " ${!srvcs})"
srvctst=(`${NCMD} systemctl is-active ${srvcstotest}`)
echo -e "${srvcstotest}\n`${NCMD} systemctl is-active ${srvcstotest}`"
sr=0
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