From 87c0ab0c33bcf487f446291b0dc1e816c5432a14 Mon Sep 17 00:00:00 2001 From: Yao Lu Date: Fri, 16 Dec 2016 11:04:15 +0800 Subject: Use new Kolla image package format Change-Id: I542630e0eb26e6a0630683186a645642411009e1 Signed-off-by: Yao Lu --- code/install_interface_patch.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'code/install_interface_patch.sh') diff --git a/code/install_interface_patch.sh b/code/install_interface_patch.sh index e0ac0876..7ae83b69 100755 --- a/code/install_interface_patch.sh +++ b/code/install_interface_patch.sh @@ -8,12 +8,17 @@ # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## -mkdir -p /home/kolla_install/docker -if [ ! -e "/home/kolla_install/docker/registry-mitaka-latest.tgz" ];then - cp registry-mitaka-latest.tgz /home/kolla_install/docker +imagebranch="newton" +imageversion="latest" +imageserver="http://120.24.17.215" +imagedir="/home/kolla_install/docker/" +imagename="kolla-image-$imagebranch-$imageversion.tgz" +mkdir -p $imagedir +if [ ! -e "$imagedir/$imagename" ];then + cp $imagename $imagedir fi -if [ ! -e "/home/kolla_install/docker/registry-server.tar" ];then - cp registry-server.tar /home/kolla_install/docker +if [ ! -e "$imagedir/registry-server.tar" ];then + cp registry-server.tar $imagedir fi cp CentOS-7-x86_64-Minimal-1511.iso /var/lib/daisy/kolla -- cgit 1.2.3-korg