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