summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-03-04 23:18:11 +0100
committerGerd Hoffmann <kraxel@redhat.com>2020-03-04 23:18:11 +0100
commit86a7758055394903e696a17dfffcd18c6ab0e84c (patch)
tree07d71154a98b9cc3777adb82bc6ce21eed1417e9
parent8cee8661b758cfb56887a25fe79faba4040a2102 (diff)
downloads2i-base-httpd-86a7758055394903e696a17dfffcd18c6ab0e84c.tar.gz
no parallel downloads
-rwxr-xr-xetc/centos-mirror.sh10
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