Update test.sh
This commit is contained in:
1 parent
d5f1d64d3f
commit
e611e6bb23
1 file changed
+6
-4
@@ -26,8 +26,10 @@ CHECK_HOST(){
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
echo $1
|
check=`ssh root@10.5.10.53 "systemctl is-active --quiet haproxy"`
|
||||||
echo ${noheader}
|
echo "HERE: '${check}'"
|
||||||
if [[ "${noheader}" != *"${1}"* ]]; then
|
if [ "${check}") = "" ]; then
|
||||||
echo 'not found'
|
echo 'yes'
|
||||||
|
else
|
||||||
|
echo 'no'
|
||||||
fi
|
fi
|
||||||
Reference in new issue
Block a user