diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2020-03-04 21:21:05 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-03-04 21:21:05 +0100 |
commit | ccaee3465a559860c29419d345684394a9a16bf0 (patch) | |
tree | a86f474cc69ff9d309a561c810d4272b0b3cd2af | |
parent | 2118aef4458104a77787dffced6585e489f4f972 (diff) | |
download | s2i-base-httpd-ccaee3465a559860c29419d345684394a9a16bf0.tar.gz |
add script
-rwxr-xr-x | etc/centos-mirror.sh | 7 |
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 |