uptime-kuma/extra/push-examples/bash-curl/index.sh

12 lines
241 B
Bash
Raw Normal View History

2023-09-13 20:03:12 +08:00
#!/bin/bash
# Filename: index.sh
2023-09-13 20:03:12 +08:00
PUSH_URL="https://example.com/api/push/key?status=up&msg=OK&ping="
INTERVAL=60
2024-05-23 17:42:36 +02:00
HTTP_METHOD="GET"
2023-09-13 20:03:12 +08:00
while true; do
2024-05-23 17:42:36 +02:00
curl -X $HTTP_METHOD -s -o /dev/null $PUSH_URL
2023-09-13 20:03:12 +08:00
echo "Pushed!"
sleep $INTERVAL
done