From 235c2ea59e531f69a064546c2812955d7c7e5327 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 20 Nov 2024 15:54:08 -0600 Subject: [PATCH] Update status.inc --- inc/status.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/inc/status.inc b/inc/status.inc index 8692e537..ab037170 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -562,8 +562,10 @@ STATUS_NODE(){ srvcs=${NODETYPE}_SERVICES_CHECK[@]; srvcstotest="$(join_by " " ${!srvcs})" - [ "${NODETYPE}" != "OFW" ] && srvctst=(`${NCMD} "systemctl is-active ${srvcstotest}"`) - echo "HERE: systemctl is-active ${srvcstotest} = ${srvctst}" + if [ "${NODETYPE}" != "OFW" ]; then + [ "${NCMD}" != "" ] && srvctst=(`${NCMD} "systemctl is-active ${srvcstotest}"`) || srvctst=(`systemctl is-active ${srvcstotest}`) + fi + echo "HERE: (${NCMD} "systemctl is-active ${srvcstotest}") = ${srvctst}" sr=0 for srvc in "${!srvcs}"; do if [ "${STATUS_ACTION}" != "report" ]; then