From 772152a5810aa8c4e03cf167381aadc4ec00499f Mon Sep 17 00:00:00 2001 From: doc Date: Wed, 1 Oct 2025 20:35:47 +0000 Subject: mirror scripts --- archupdate.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 archupdate.sh (limited to 'archupdate.sh') 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 -- cgit v1.2.3