aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-08-19 13:03:29 +0200
committerGerd Hoffmann <kraxel@redhat.com>2020-08-19 13:03:29 +0200
commit99b6efd0ce38f0f20e9f51e69ce2c979a89f8bae (patch)
treeaf68a895b586d3ce03ce19cec29c43c286128f4d
parent3e9084405499a34b7e171c31743c3ea94a81d744 (diff)
downloadpodman-docker-builder-99b6efd0ce38f0f20e9f51e69ce2c979a89f8bae.tar.gz
mirror update
-rwxr-xr-xconfigure-mirror16
1 files changed, 12 insertions, 4 deletions
diff --git a/configure-mirror b/configure-mirror
index f895e78..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_parallel_downloads /etc/dnf/dnf.conf ||\
-echo max_parallel_downloads=1 >> /etc/dnf/dnf.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