summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-07-11 10:09:20 +0200
committerErich Eckner <git@eckner.net>2019-07-11 10:09:20 +0200
commit593f865e209831a95a666204e71f5e20fb2df758 (patch)
tree19e86145ed76da163f297ba1c703c61a24e50a1e /bin
parent7350a144458a55ac2934bc89368441005bf25c23 (diff)
downloadbuilder-593f865e209831a95a666204e71f5e20fb2df758.tar.xz
bin/sanity-check: do not _ping_ the master mirror (ping does not work O.o) - use curl
Diffstat (limited to 'bin')
-rwxr-xr-xbin/sanity-check4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sanity-check b/bin/sanity-check
index 3813f22..5160142 100755
--- a/bin/sanity-check
+++ b/bin/sanity-check
@@ -158,9 +158,9 @@ while [ $# -gt 0 ]; do
' | \
sort -u
); do
- if ! ping -c1 "${host}" >/dev/null 2>&1; then
+ if ! curl -s "http://$(dig +short "${host}" | tail -n1)" >/dev/null 2>&1; then
if [ ${silence} -le 1 ]; then
- printf '\nThe master mirror %s cannot be pinged.\n' \
+ printf '\nThe master mirror %s is not reachable.\n' \
"${host}" | \
tee -a "${tmp_dir}/messages" >&2
fi