Update nodemgmt-scripts.sh

This commit is contained in:
2023-04-27 09:58:04 -05:00
parent efc38b0646
commit 6290bfcb78

View File

@@ -180,6 +180,8 @@ STATUS(){
[ "${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
if [ ${NOGOCHK} == true ]; then
srvctst=(`${NCMD} systemctl is-active ${srvcstotest}`)
echo "H: $srvctst"
echo "H: $srvctst[0] $srvctt[1] $srvctt[2] $srvctt[3]"
sr=0
for srvc in "${!srvcs}"; do
if [ "${ST_ACTION}" != "check" ]; then
@@ -199,7 +201,7 @@ STATUS(){
fi
# echo "mysqlgo=${mysqlgo}"
echo "H: '${srvctst[$sr]}' - '$nip' - '$srvc' - '${mysqlgo}'"
echo "H: '$sr' - '${srvctst[$sr]}' - '$nip' - '$srvc' - '${mysqlgo}'"
if [ "${srvctst[$sr]}" != "active" ] && [ "${mysqlgo}" != "true" ]; then
if [ ! -f ${FOLDER}/${nip}-${srvc}.down ]; then