summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-03-04 21:21:05 +0100
committerGerd Hoffmann <kraxel@redhat.com>2020-03-04 21:21:05 +0100
commitccaee3465a559860c29419d345684394a9a16bf0 (patch)
treea86f474cc69ff9d309a561c810d4272b0b3cd2af
parent2118aef4458104a77787dffced6585e489f4f972 (diff)
downloads2i-base-httpd-ccaee3465a559860c29419d345684394a9a16bf0.tar.gz
add script
-rwxr-xr-xetc/centos-mirror.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/centos-mirror.sh b/etc/centos-mirror.sh
new file mode 100755
index 0000000..e8eb6a7
--- /dev/null
+++ b/etc/centos-mirror.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+for file in /etc/yum.repos.d/CentOS*.repo; do
+ sed -i .orig \
+ -e 's/^mirrorlist/#mirrorlist/' \
+ -e 's/^#baseurl/baseurl/' \
+ $file
+done