From ccaee3465a559860c29419d345684394a9a16bf0 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 4 Mar 2020 21:21:05 +0100 Subject: add script --- etc/centos-mirror.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 etc/centos-mirror.sh 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 -- cgit