diff --git a/test.sh b/test.sh index 98c1949..53bdc41 100755 --- a/test.sh +++ b/test.sh @@ -29,7 +29,7 @@ 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') ]; then echo 'yes' else echo 'no'