diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2020-03-04 23:18:11 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-03-04 23:18:11 +0100 |
commit | 86a7758055394903e696a17dfffcd18c6ab0e84c (patch) | |
tree | 07d71154a98b9cc3777adb82bc6ce21eed1417e9 | |
parent | 8cee8661b758cfb56887a25fe79faba4040a2102 (diff) | |
download | s2i-base-httpd-86a7758055394903e696a17dfffcd18c6ab0e84c.tar.gz |
no parallel downloads
-rwxr-xr-x | etc/centos-mirror.sh | 10 |
1 files changed, 10 insertions, 0 deletions
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 |