summaryrefslogtreecommitdiff
path: root/archupdate.sh
blob: 8cf3d92a2afc37a587b763e8d441c6398cdf3ec4 (plain)
1
2
3
4
5
6
7
8
9
10
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