diff options
author | doc <doc@filenotfound.org> | 2025-10-01 20:35:47 +0000 |
---|---|---|
committer | doc <doc@filenotfound.org> | 2025-10-01 20:35:47 +0000 |
commit | 772152a5810aa8c4e03cf167381aadc4ec00499f (patch) | |
tree | ba9418142f88622da878d9a3483c5da2da3e5c83 /archupdate.sh | |
parent | 13eb2d51c7284472efabc278bf9b7ec0b8575e47 (diff) |
Diffstat (limited to 'archupdate.sh')
-rwxr-xr-x | archupdate.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/archupdate.sh b/archupdate.sh new file mode 100755 index 0000000..8cf3d92 --- /dev/null +++ b/archupdate.sh @@ -0,0 +1,11 @@ +#!/bin/bash +URL="https://stygian.failzero.net/mirror/archlinux/lastupdate" +LOG="/var/log/mirror_health.log" + +for ipopt in -4 -6; do + if curl $ipopt -fsS "$URL" >/dev/null; then + echo "$(date) [$ipopt] OK" >> $LOG + else + echo "$(date) [$ipopt] FAIL" >> $LOG + fi +done |