From 4a7c36473cbd9e5d2969f27724703474e4a6b5a6 Mon Sep 17 00:00:00 2001 From: Xicheng Chang Date: Wed, 5 Nov 2014 11:09:09 -0800 Subject: [PATCH] Switch rpms to centos.org mirror Change-Id: I48a61d565e17d37f04bb6d13edc9bad5eac9942c --- install/cobbler.sh | 2 +- install/prepare.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install/cobbler.sh b/install/cobbler.sh index a93ec71e..c3041d78 100755 --- a/install/cobbler.sh +++ b/install/cobbler.sh @@ -230,7 +230,7 @@ for f in $centos_ppa_repo_packages; do if [ "$REGION" == "asia" ]; then download http://mirrors.yun-idc.com/${CENTOS_IMAGE_TYPE,,}/${CENTOS_IMAGE_VERSION}/os/${CENTOS_IMAGE_ARCH}/Packages/$f $f copy /var/lib/cobbler/repo_mirror/centos_ppa_repo/ || exit $? else - download ftp://rpmfind.net/linux/${CENTOS_IMAGE_TYPE,,}/${CENTOS_IMAGE_VERSION}/os/${CENTOS_IMAGE_ARCH}/Packages/$f $f copy /var/lib/cobbler/repo_mirror/centos_ppa_repo/ || exit $? + download http://mirror.centos.org/${CENTOS_IMAGE_TYPE,,}/${CENTOS_IMAGE_VERSION}/os/${CENTOS_IMAGE_ARCH}/Packages/$f $f copy /var/lib/cobbler/repo_mirror/centos_ppa_repo/ || exit $? fi done diff --git a/install/prepare.sh b/install/prepare.sh index a86a5432..b2ef5a04 100755 --- a/install/prepare.sh +++ b/install/prepare.sh @@ -225,7 +225,7 @@ for f in $centos_ppa_repo_packages; do if [ "$REGION" == "asia" ]; then download http://mirrors.yun-idc.com/${CENTOS_IMAGE_TYPE,,}/${CENTOS_IMAGE_VERSION}/os/${CENTOS_IMAGE_ARCH}/Packages/$f $f || exit $? else - download http://rpmfind.net/linux/${CENTOS_IMAGE_TYPE,,}/${CENTOS_IMAGE_VERSION}/os/${CENTOS_IMAGE_ARCH}/Packages/$f $f || exit $? + download http://mirror.centos.org/${CENTOS_IMAGE_TYPE,,}/${CENTOS_IMAGE_VERSION}/os/${CENTOS_IMAGE_ARCH}/Packages/$f $f || exit $? fi done