From 86a7758055394903e696a17dfffcd18c6ab0e84c Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 4 Mar 2020 23:18:11 +0100 Subject: no parallel downloads --- etc/centos-mirror.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/etc/centos-mirror.sh b/etc/centos-mirror.sh index 7eaddb2..59a5aad 100755 --- a/etc/centos-mirror.sh +++ b/etc/centos-mirror.sh @@ -1,4 +1,8 @@ #!/bin/sh + +# +# use fixed mirror (be proxy friendly) +# furl="http://mirror.centos.org/" turl="${CENTOS_MIRROR-http://mirror.centos.org/}" for file in /etc/yum.repos.d/CentOS*.repo; do @@ -8,3 +12,9 @@ for file in /etc/yum.repos.d/CentOS*.repo; do -e "s|${furl}|${turl}|" \ "$file" done + +# +# no parallel downloads please +# +grep -q max_parallel_downloads /etc/dnf/dnf.conf ||\ +cat max_parallel_downloads=1 >> /etc/dnf/dnf.conf -- cgit