Change local repo from baidu to Huawei lab.
Change-Id: Ic88c0bdd808edf6400be5e769ae35eda3f51adfd
This commit is contained in:
parent
b93544704c
commit
cfd46526a8
@ -22,7 +22,7 @@ sudo cp -rf $WEB_HOME/v2 /var/www/compass_web/
|
||||
if [[ $LOCAL_REPO = "y" ]]; then
|
||||
echo "setting up local repo"
|
||||
mkdir -p /tmp/repo
|
||||
fastesturl $LOCAL_REPO_ASIA $LOCAL_REPO_US
|
||||
fastesturl $LOCAL_REPO_HUAWEI $LOCAL_REPO_US
|
||||
if [[ "$?" != "0" ]]; then
|
||||
echo "failed to determine the fastest local repo source"
|
||||
exit 1
|
||||
|
@ -86,4 +86,4 @@ export TESTMODE=${TESTMODE:-"False"}
|
||||
|
||||
# Set Local Repo sources
|
||||
export LOCAL_REPO_US=${LOCAL_REPO_US:-"https://s3-us-west-1.amazonaws.com/compass-local-repo/local_repo.tar.gz"}
|
||||
export LOCAL_REPO_ASIA=${LOCAL_REPO_ASIA:-"http://nj.baidupcs.com/file/5aa212b98c6315fd8c22706c56819aad?bkt=p2-nj-424&fid=2147902224-250528-851286049844289&time=1415230560&sign=FDTAXERB-DCb740ccc5511e5e8fedcff06b081203-Q0KR%2FCMM5y%2B3ha0fXamUW32EywA%3D&to=nb&fm=Nan,B,U,ny&newver=1&newfm=1&flow_ver=3&expires=8h&rt=pr&r=451353717&mlogid=587914427&vuk=2147902224&vbdid=441655319&fin=local_repo.tar.gz"}
|
||||
export LOCAL_REPO_HUAWEI=${LOCAL_REPO_HUAWEI:-"http://huawei-repo.uubright.com/repos/compass/local_repo.tar.gz"}
|
||||
|
@ -268,7 +268,7 @@ download $UBUNTU_ISO_SOURCE ${UBUNTU_IMAGE_NAME}-${UBUNTU_IMAGE_ARCH}.iso || exi
|
||||
|
||||
# download local repo
|
||||
if [[ $LOCAL_REPO = "y" ]]; then
|
||||
fastesturl $LOCAL_REPO_US $LOCAL_REPO_ASIA
|
||||
fastesturl $LOCAL_REPO_US $LOCAL_REPO_HUAWEI
|
||||
if [[ "$?" != "0" ]]; then
|
||||
echo "failed to determine the fastest source for local repo"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user