From 57d586e55b346d5128f86b65cdda4c5b26575cab Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 19 Aug 2020 13:04:02 +0200 Subject: mirror update --- configure-mirror | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/configure-mirror b/configure-mirror index f84d79c..d21abf7 100755 --- a/configure-mirror +++ b/configure-mirror @@ -29,13 +29,21 @@ function set_baseurl() { # use fixed (configurable) mirror. # be cache proxy friendly. # -set_baseurl http://mirror.centos.org/ "${CENTOS_MIRROR}" CENTOS_MIRROR -set_baseurl http://download.fedoraproject.org/ "${FEDORA_MIRROR}" FEDORA_MIRROR +set_baseurl http://mirror.centos.org/centos/ "${CENTOS_MIRROR}" CENTOS_MIRROR +set_baseurl http://download.fedoraproject.org/pub/epel/ "${EPEL_MIRROR}" EPEL_MIRROR +set_baseurl http://download.fedoraproject.org/pub/fedora/linux/ "${FEDORA_MIRROR}" FEDORA_MIRROR +set_baseurl http://download.example/pub/fedora/linux/ "${FEDORA_MIRROR}" FEDORA_MIRROR # # no parallel downloads please. # -grep -q max_connections /etc/yum.conf ||\ -echo max_connections=1 >> /etc/yum.conf +if test -f /etc/dnf/dnf.conf; then + grep -q max_parallel_downloads /etc/dnf/dnf.conf ||\ + echo max_parallel_downloads=1 >> /etc/dnf/dnf.conf +fi +if test -f /etc/yum.conf; then + grep -q max_connections /etc/yum.conf ||\ + echo max_connections=1 >> /etc/yum.conf +fi exit 0 -- cgit