From 8a6fbd85ee5cfdc7e4fbf8b1917a8ac573407916 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 7 Feb 2019 21:01:37 -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 53bdc41..16320d7 100755 --- a/test.sh +++ b/test.sh @@ -28,8 +28,8 @@ CHECK_HOST(){ #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 -if [ $(ssh root@10.5.10.53 'systemctl is-active --quiet haproxy') ]; then +if [ "$(ssh root@10.5.10.53 'systemctl is-active --quiet haproxy && echo true')" = "true" ]; then +#if [ $(ssh root@10.5.10.53 'systemctl is-active --quiet haproxy') ]; then echo 'yes' else echo 'no'