update
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
VERS='4.5.15-04262023'
|
VERS='4.5.17-04262023'
|
||||||
|
|
||||||
NODETYPES=WEB
|
# NODETYPES=WEB
|
||||||
# NODETYPES=MYSQL,LB,WEB,NC,WPD,LPD,MM,PW
|
NODETYPES=MYSQL,LB,WEB,NC,WPD,LPD,MM,PW
|
||||||
MYSQLHOSTS=10.10.1.51,10.10.1.52
|
MYSQLHOSTS=10.10.1.51,10.10.1.52
|
||||||
WEBHOSTS=10.10.1.121,10.10.1.122
|
WEBHOSTS=10.10.1.121,10.10.1.122
|
||||||
LBHOSTS=10.10.10.81,10.10.10.82
|
LBHOSTS=10.10.10.81,10.10.10.82
|
||||||
|
|||||||
@@ -175,9 +175,7 @@ STATUS(){
|
|||||||
if [ "${ST_ACTION}" != "dockers" ]; then
|
if [ "${ST_ACTION}" != "dockers" ]; then
|
||||||
srvcs=${NTYPE}_SERVICES_CHECK[@];
|
srvcs=${NTYPE}_SERVICES_CHECK[@];
|
||||||
srvcstotest="$(join_by " " ${!srvcs})"
|
srvcstotest="$(join_by " " ${!srvcs})"
|
||||||
|
|
||||||
srvctst=(`${NCMD} systemctl is-active ${srvcstotest}`)
|
srvctst=(`${NCMD} systemctl is-active ${srvcstotest}`)
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user