Update test.sh

This commit is contained in:
2019-02-07 20:51:42 -06:00
parent d5f1d64d3f
commit e611e6bb23

10
test.sh
View File

@@ -26,8 +26,10 @@ CHECK_HOST(){
fi
}
echo $1
echo ${noheader}
if [[ "${noheader}" != *"${1}"* ]]; then
echo 'not found'
check=`ssh root@10.5.10.53 "systemctl is-active --quiet haproxy"`
echo "HERE: '${check}'"
if [ "${check}") = "" ]; then
echo 'yes'
else
echo 'no'
fi