summaryrefslogtreecommitdiff
path: root/archupdate.sh
diff options
context:
space:
mode:
authordoc <doc@filenotfound.org>2025-10-01 20:35:47 +0000
committerdoc <doc@filenotfound.org>2025-10-01 20:35:47 +0000
commit772152a5810aa8c4e03cf167381aadc4ec00499f (patch)
treeba9418142f88622da878d9a3483c5da2da3e5c83 /archupdate.sh
parent13eb2d51c7284472efabc278bf9b7ec0b8575e47 (diff)
mirror scriptsHEADmaster
Diffstat (limited to 'archupdate.sh')
-rwxr-xr-xarchupdate.sh11
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