Update test.sh

This commit is contained in:
2019-02-07 21:01:37 -06:00
parent 30932b2882
commit 8a6fbd85ee

View File

@@ -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'