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