summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-06-06 20:48:48 +0200
committerErich Eckner <git@eckner.net>2020-06-06 20:48:48 +0200
commit99f178a52f420cc419387b1a1da312c56dad4e79 (patch)
treeb9760304ec0c578ce2de4cf3a9b738fb144c8375
parent5319dd280fe7e3189c4fe4cd3c5e6ddd53c70178 (diff)
downloadarch-mirror-99f178a52f420cc419387b1a1da312c56dad4e79.tar.xz
arch-mirror: prefer ipv4
-rwxr-xr-xarch-mirror4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch-mirror b/arch-mirror
index 9dc9fea..9fb1c1c 100755
--- a/arch-mirror
+++ b/arch-mirror
@@ -11,7 +11,7 @@ fi
mirror_dir='/srv/http/arch'
-rsync_options='-rtlHp --safe-links --timeout=600 --contimeout=60 --delay-updates --no-motd --temp-dir='"${mirror_dir}"'/.tmp --exclude .tmp --exclude .~tmp~'
+rsync_options='-rtlHp4 --safe-links --timeout=600 --contimeout=60 --delay-updates --no-motd --temp-dir='"${mirror_dir}"'/.tmp --exclude .tmp --exclude .~tmp~'
if stty &>/dev/null; then
rsync_verbose='-v'
@@ -79,7 +79,7 @@ retrieve_content() {
rsync ${rsync_options} ${rsync_verbose} ${extra_options} "${url}" "${destination}"
;;
'https'|'http')
- wget --mirror -nH -np ${wget_verbose} -P "${destination}" --cut-dirs $(
+ wget --mirror --prefer-family=Ipv4 -nH -np ${wget_verbose} -P "${destination}" --cut-dirs $(
echo "${url#*//}" \
| tr -d '\n' \
| tr '/' '\n' \