Verified Commit f78b7061 authored by Recolic Keghart's avatar Recolic Keghart 🎱

tiny bug fix

parent 7903af8b
# Recolic Server Status Monitor
![](https://codebuild.us-west-1.amazonaws.com/badges?uuid=eyJlbmNyeXB0ZWREYXRhIjoiSEE4NTRWUlR1bCtJbUpmdEt1bmUvVTNhN2F5SCs5ZENPR2FYcUJoa2Z0SjY5bVFZMU1DVU13Y2tNbjBJWnZqNllRZzEydTZSeWcxeGUzS0NaR0w5amJJPSIsIml2UGFyYW1ldGVyU3BlYyI6InVMWk52R0pGQVNBNmkvbHUiLCJtYXRlcmlhbFNldFNlcmlhbCI6MX0%3D&branch=master)
## [Click HERE](https://recolic.net/status.html)
## Structure
......
......@@ -24,7 +24,7 @@ def on_broken(tag, desc):
curr_time = datetime.datetime.utcnow()
msg = desc + ' service went down.'
new_event = [tag, curr_time.strftime("%a %d %b %Y %H:%M:%S %p UTC"), msg, curr_time.strftime("%b"),curr_time.strftime("%d"),curr_time.strftime("%Y")]
events.append(new_event)
events = [new_event] + events # latest event first!
def save_status():
#
......
......@@ -120,31 +120,34 @@ function do_test () {
curl -s 'https://recolic.net/go/index.php' --data 'target=https%3A%2F%2Fwww.google.com&name=google&super=' | grep Success || return $?
;;
esac
}
function do_test_twice () {
do_test "$1" || do_test "$1"
return $?
}
if [[ "$1" = all ]]; then
do_test rproxy &&
do_test drive &&
do_test ss-tw &&
do_test ss-us1 &&
do_test ss-us5 &&
do_test ss-us6 &&
do_test ovpn-tw &&
do_test www &&
do_test mail &&
do_test tm &&
do_test git &&
do_test zhixiang &&
do_test mc &&
do_test push-httpdb-agent &&
do_test ddns-wuhan &&
do_test ddns-us &&
do_test shortlink &&
do_test dl
do_test_twice rproxy &&
do_test_twice drive &&
do_test_twice ss-tw &&
do_test_twice ss-us1 &&
do_test_twice ss-us5 &&
do_test_twice ss-us6 &&
do_test_twice ovpn-tw &&
do_test_twice www &&
do_test_twice mail &&
do_test_twice tm &&
do_test_twice git &&
do_test_twice zhixiang &&
do_test_twice mc &&
do_test_twice push-httpdb-agent &&
do_test_twice ddns-wuhan &&
do_test_twice ddns-us &&
do_test_twice shortlink &&
do_test_twice dl
exit $?
fi
do_test "$1"
do_test_twice "$1"
exit $?
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment