From b3d0eb390cc83f7b16f3699a7ea2cd32204203af Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 7 Feb 2019 20:57:51 -0600 Subject: [PATCH] Update test.sh --- test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test.sh b/test.sh index 21a2885..6b6c083 100755 --- a/test.sh +++ b/test.sh @@ -26,9 +26,9 @@ CHECK_HOST(){ fi } -check=`ssh root@10.5.10.53 "systemctl is-active --quiet haproxy && echo true"` -echo "HERE: '${check}'" -if [ "${check}" = "true" ]; then +#check=`ssh root@10.5.10.53 "systemctl is-active --quiet haproxy && echo true"` +#echo "HERE: '${check}'" +if [ $(ssh root@10.5.10.53 "systemctl is-active --quiet haproxy && echo true") = "true" ]; then echo 'yes' else echo 'no'