summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2018-01-04 19:15:41 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2018-01-04 19:15:41 +0800
commit1fd5b7306fc9447aa90dd10189f884a78610f82c (patch)
tree44c61c1b5dbe47496522ef58c47fc071fc8ac45d
parentb7added70edc9511a3e322865834be49430e89a4 (diff)
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 <huangxiangyu5@huawei.com>
-rwxr-xr-xcompass-deck/build.sh8
1 files changed, 7 insertions, 1 deletions
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