From dd65f4999f03980f62f8975ba0ea92ca288a752b Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 18 Sep 2014 12:14:11 -0300 Subject: [PATCH] proxy.sh: stop yum from downloading from random places --- proxy.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/proxy.sh b/proxy.sh index d582fb4..37dc261 100755 --- a/proxy.sh +++ b/proxy.sh @@ -23,7 +23,9 @@ if test -f /etc/yum.conf; then sed -i -s '/\[main\]/ a http_caching=packages' /etc/yum.conf sed -i -s '/\[main\]/ a proxy='$http_proxy /etc/yum.conf - sed -i -e 's/^enabled=.*/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf + rm -f /etc/yum/pluginconf.d/fastestmirror.conf + + sed -i -e 's/^#baseurl/baseurl/; s/^mirrorlist=/#mirrorlist-/' /etc/yum.repos.d/CentOS-*.repo if [ ! -f /var/tmp/yum-clean.stamp ]; then pgrep -f yum || yum clean all || true -- libgit2 0.21.2