From e611e6bb2338b26e825ae82e37aabe0782c9cbdf Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 7 Feb 2019 20:51:42 -0600 Subject: [PATCH] Update test.sh --- test.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test.sh b/test.sh index a635752..64449a0 100755 --- a/test.sh +++ b/test.sh @@ -26,8 +26,10 @@ CHECK_HOST(){ fi } -echo $1 -echo ${noheader} -if [[ "${noheader}" != *"${1}"* ]]; then - echo 'not found' +check=`ssh root@10.5.10.53 "systemctl is-active --quiet haproxy"` +echo "HERE: '${check}'" +if [ "${check}") = "" ]; then + echo 'yes' +else + echo 'no' fi \ No newline at end of file