7 lines
236 B
Text
7 lines
236 B
Text
![]() |
#!/usr/bin/env bash
|
||
|
set -euo pipefail
|
||
|
latency="$(ping -c 5 uptime.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"
|