diff options
Diffstat (limited to 'etc/centos-mirror.sh')
-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 |