From 947c03a57733094e950efb75832bf34137560ed0 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 7 Feb 2019 20:55:17 -0600 Subject: [PATCH] Update test.sh --- test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.sh b/test.sh index 004d316..21a2885 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"` +check=`ssh root@10.5.10.53 "systemctl is-active --quiet haproxy && echo true"` echo "HERE: '${check}'" -if [ "${check}" = "" ]; then +if [ "${check}" = "true" ]; then echo 'yes' else echo 'no'