6 lines
236 B
Bash
6 lines
236 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
latency="$(ping -c 5 oracle.benpro.fr | awk '{print $4}' | tail -1 | cut -d'/' -f2) ms"
|
|
URI="https://status.benpro.fr/api/push/<secret>?msg=OK&ping=${latency}"
|
|
|
|
/usr/bin/curl -s -o /dev/null "$URI"
|