From c80bedd611366e5f069f35ec04d7bb207ae58441 Mon Sep 17 00:00:00 2001 From: David Shrewsbury Date: Fri, 12 Apr 2013 11:33:11 -0400 Subject: [PATCH] Update upgrade script to pull from tarball.o.o. Change-Id: I3056e31c6f9c6aad2bab4ca162d2deeb22cc8749 --- bin/upgrade_worker_V1toV2.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/bin/upgrade_worker_V1toV2.sh b/bin/upgrade_worker_V1toV2.sh index 2da644d2..3ffa63fe 100755 --- a/bin/upgrade_worker_V1toV2.sh +++ b/bin/upgrade_worker_V1toV2.sh @@ -165,12 +165,19 @@ fi ############## # Update Libra ############## -pkglocation="/home/ubuntu" pkgversion="libra-2.0" -echo "Updating Libra to ${pkgversion}" | tee -a ${LOG} +pkglocation="/tmp" +tarball="http://tarball.openstack.org/libra/${pkgversion}.tar.gz" + +echo "Downloading ${pkgversion} tarball to ${pkglocation}" | tee -a ${LOG} cd $pkglocation if [ $? -ne 0 ]; then echo "cd to ${pkglocation} failed" | tee -a ${LOG}; exit 1; fi +curl -Osf ${tarball} +if [ $? -ne 0 ]; then echo "Failed to download ${tarball}" | tee -a ${LOG}; exit 1; fi + +echo "Updating Libra to ${pkgversion}" | tee -a ${LOG} + tar zxf ${pkgversion}.tar.gz 2>&1 >> ${LOG} if [ $? -ne 0 ]; then echo "tar failed" | tee -a ${LOG}; exit 1; fi cd ${pkgversion}