Update test.sh

This commit is contained in:
2019-02-07 20:57:51 -06:00
parent 947c03a577
commit b3d0eb390c

View File

@@ -26,9 +26,9 @@ CHECK_HOST(){
fi
}
check=`ssh root@10.5.10.53 "systemctl is-active --quiet haproxy && echo true"`
echo "HERE: '${check}'"
if [ "${check}" = "true" ]; then
#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
echo 'yes'
else
echo 'no'