Update test.sh
This commit is contained in:
1 parent
947c03a577
commit
b3d0eb390c
1 file changed
+3
-3
@@ -26,9 +26,9 @@ CHECK_HOST(){
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
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 [ "${check}" = "true" ]; then
|
if [ $(ssh root@10.5.10.53 "systemctl is-active --quiet haproxy && echo true") = "true" ]; then
|
||||||
echo 'yes'
|
echo 'yes'
|
||||||
else
|
else
|
||||||
echo 'no'
|
echo 'no'
|
||||||
|
|||||||
Reference in new issue
Block a user