Update test.sh

This commit is contained in:
voltron committed 2019-02-07 21:00:14 -06:00
1 parent 9f93e92e2d
commit 30932b2882
1 file changed
+1 -1
+1 -1
View File
@@ -29,7 +29,7 @@ CHECK_HOST(){
#check=`ssh root@10.5.10.53 "systemctl is-active --quiet haproxy && echo true"` #check=`ssh root@10.5.10.53 "systemctl is-active --quiet haproxy && echo true"`
#echo "HERE: '${check}'" #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 && 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' echo 'yes'
else else
echo 'no' echo 'no'