Update test.sh

This commit is contained in:
2019-02-07 22:08:42 -06:00
parent 572410ebae
commit 7199f9ec97

10
test.sh
View File

@@ -19,12 +19,10 @@ if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remot
exit 0
fi
CHECK_HOST(){
ping -c 3 ${1} > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo false
fi
}
declare -i errtime
declare -i ctime
errtime=$(stat -c %Y /opt/idssys/nodemgmt/10.5.10.53-haproxy.down)
ctime=`date +%s`