From 1fd5b7306fc9447aa90dd10189f884a78610f82c Mon Sep 17 00:00:00 2001 From: Harry Huang Date: Thu, 4 Jan 2018 19:15:41 +0800 Subject: Update compass-deck Using for loop to mv compass modules into compass dir to fix dir mv issue Change-Id: Id36781a8c2768aed12d1afb574dab0947f56b361 Signed-off-by: Harry Huang --- compass-deck/build.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/compass-deck/build.sh b/compass-deck/build.sh index 81ed6ff..23cf48c 100755 --- a/compass-deck/build.sh +++ b/compass-deck/build.sh @@ -10,6 +10,8 @@ set -x COMPASS_DIR=${BASH_SOURCE[0]%/*} +COMPASS_MODULE=(actions api apiclient utils db tasks deployment) + yum update -y yum --nogpgcheck install -y which python python-devel git wget syslinux amqp mod_wsgi httpd bind rsync yum-utils gcc unzip openssl openssl098e ca-certificates mysql-devel mysql MySQL-python python-virtualenv python-setuptools python-pip bc libselinux-python libffi-devel openssl-devel vim net-tools @@ -52,8 +54,12 @@ mkdir -p /var/log/compass chmod -R 777 /var/log/compass chmod -R 777 /opt/compass/db mkdir -p $COMPASS_DIR/compass -mv $COMPASS_DIR/{actions,api,apiclient,utils,db,tasks,deployment} $COMPASS_DIR/compass/ +for((i=0; i<${#COMPASS_MODULE[@]}; i++)) +do + mv $COMPASS_DIR/${COMPASS_MODULE[i]} $COMPASS_DIR/compass/ +done touch $COMPASS_DIR/compass/__init__.py + source `which virtualenvwrapper.sh` workon compass-core cd /root/compass-deck -- cgit 1.2.3-korg