Update hostname

This commit is contained in:
Benoit S 2022-03-12 14:28:51 +09:00
parent 2da19becf1
commit 3cbbd2fed4
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
latency="$(ping -c 5 uptime.benpro.fr | awk '{print $4}' | tail -1 | cut -d'/' -f2) ms"
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"