From 7a92152d78e47cf562caba419ca08326b69626d9 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 25 Nov 2023 15:17:48 -0600 Subject: [PATCH] Update status.inc --- inc/status.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/status.inc b/inc/status.inc index b8f08846..4a14af0a 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -163,7 +163,7 @@ STATUS(){ fi if [ "${NCMD}" != "" ]; then checkhost=$(CHECK_HOST ${nip}) - [ "${checkhost}" != "false" ] && checkhostssl=$(ssh -o BatchMode=yes -o ConnectTimeout=3 root@${nip} echo ok) + [ "${checkhost}" != "false" ] && checkhostssl=$(ssh -o BatchMode=yes -o ConnectTimeout=3 root@${nip} echo ok 3>&1) || checkhostssl='' echo "HERE: $checkhost - $checkhostssl" else checkhost=true