Update test.sh
This commit is contained in:
1 parent
b3d0eb390c
commit
9f93e92e2d
1 file changed
+2
-1
@@ -28,7 +28,8 @@ CHECK_HOST(){
|
||||
|
||||
#check=`ssh root@10.5.10.53 "systemctl is-active --quiet haproxy && echo true"`
|
||||
#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
|
||||
echo 'yes'
|
||||
else
|
||||
echo 'no'
|
||||
|
||||
Reference in new issue
Block a user