diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2020-08-19 13:04:02 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-08-19 13:04:02 +0200 |
commit | 57d586e55b346d5128f86b65cdda4c5b26575cab (patch) | |
tree | 61b985d00fef39e95773122c7eec036f9e525c12 | |
parent | 4453f1a32f689e12e49d3bf205308df273c33c3f (diff) | |
download | rpm-package-builder-57d586e55b346d5128f86b65cdda4c5b26575cab.tar.gz |
mirror update
-rwxr-xr-x | configure-mirror | 16 |
1 files 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 |