Update test.sh

This commit is contained in:
2019-02-07 21:05:14 -06:00
parent dbf02fed91
commit 720db50a76

View File

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