Update status.inc

This commit is contained in:
2023-08-18 22:57:42 -05:00
parent 3a119100fe
commit c289ace76f

View File

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