Update nodemgmt-scripts.sh

This commit is contained in:
2023-04-27 09:41:33 -05:00
parent 10a83794c1
commit 068636bff0

View File

@@ -181,7 +181,7 @@ 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: `${NCMD} systemctl is-active ${srvcstotest}`"
sr=0
for srvc in "${srvcs}"; do
if [ "${ST_ACTION}" != "check" ]; then