Update test.sh
This commit is contained in:
15
test.sh
15
test.sh
@@ -19,6 +19,15 @@ if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remot
|
||||
exit 0
|
||||
fi
|
||||
|
||||
toterrtime=`date +%s`-$(stat -c %Y /opt/idssys/nodemgmt/10.5.10.53-haproxy.down)
|
||||
#show_time ${toterrtime}
|
||||
echo "has been down for $(SHOW_TIME ${toterrtime})"
|
||||
|
||||
|
||||
|
||||
IFS=$'\n'
|
||||
for LINE in `egrep -v '(^#|^$)' ${FOLDER}/ssl-cert-check/ssldomains`
|
||||
do
|
||||
HOST=${LINE%% *}
|
||||
PORT=${LINE#* }
|
||||
IFS=" "
|
||||
echo "${HOST} - ${PORT}"
|
||||
done
|
||||
unset IFS
|
||||
|
||||
Reference in New Issue
Block a user