Update test.sh

This commit is contained in:
2019-02-07 21:04:52 -06:00
parent 9f4da4f20d
commit dbf02fed91

View File

@@ -30,7 +30,7 @@ CHECK_HOST(){
#echo "HERE: '${check}'"
srvc=haproxy
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'