summaryrefslogtreecommitdiffstats
path: root/bin/check-mirrors
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2014-01-08 21:50:21 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2014-01-08 21:50:21 (GMT)
commitd4d4ddde3e2bfd2f3ab3655c1d533c3f36261a01 (patch)
tree52dcd6f0cd483314cf9ecaab761c66a43222d024 /bin/check-mirrors
parentdae4b1466356056ad59296cf5953a05dc3215389 (diff)
downloadsite-d4d4ddde3e2bfd2f3ab3655c1d533c3f36261a01.tar.gz
check-mirrors: Use active FTP mode
Accessing ftp://mirrors.fe.up.pt/pub/nagios-plugins/ is very slow when passive mode is used. As the EPSV command seems to be the culprit, an alternative would be to specify "--disable-epsv".
Diffstat (limited to 'bin/check-mirrors')
-rwxr-xr-xbin/check-mirrors2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/check-mirrors b/bin/check-mirrors
index 9334417..d3fcfe9 100755
--- a/bin/check-mirrors
+++ b/bin/check-mirrors
@@ -264,7 +264,7 @@ for mirror in $mirrors
264do 264do
265 url="${mirror%/}/timestamp" 265 url="${mirror%/}/timestamp"
266 266
267 if curl -s -S -O -m 600 --retry 2 --ftp-method 'nocwd' "$url" \ 267 if curl -s -S -O -P '-' -m 600 --retry 2 --ftp-method 'nocwd' "$url" \
268 >'curl.log' 2>&1 268 >'curl.log' 2>&1
269 then 269 then
270 cmp -s 'expected' 'timestamp' \ 270 cmp -s 'expected' 'timestamp' \