summaryrefslogtreecommitdiffstats
path: root/compass/ci/deploy.sh
diff options
context:
space:
mode:
authorcarey.xu <carey.xuhan@huawei.com>2015-07-06 16:45:40 +0800
committercarey.xu <carey.xuhan@huawei.com>2015-07-08 10:18:44 +0800
commit99c363dbd827c430cf2bed2cd27c66be4642bae2 (patch)
treef6af62c3301d58d8c7d49f2a34ef73c3112309e3 /compass/ci/deploy.sh
parented3731988cdc90066aa4c8e6147f1acbc6622df8 (diff)
speed up the installation of compass
BGS-83 Change-Id: I0dada0a6c4fc6b9dda9fe586b0371ba543045057 Signed-off-by: carey.xu <carey.xuhan@huawei.com>
Diffstat (limited to 'compass/ci/deploy.sh')
-rwxr-xr-xcompass/ci/deploy.sh14
1 files changed, 9 insertions, 5 deletions
diff --git a/compass/ci/deploy.sh b/compass/ci/deploy.sh
index fe754aa..197bf63 100755
--- a/compass/ci/deploy.sh
+++ b/compass/ci/deploy.sh
@@ -1,5 +1,9 @@
-SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
-CONF_NAME=$1
-source ${SCRIPT_DIR}/../deploy/prepare.sh || exit $?
-source ${SCRIPT_DIR}/../deploy/setup-env.sh || exit $?
-source ${SCRIPT_DIR}/../deploy/deploy-vm.sh || exit $?
+#set -x
+COMPASS_DIR=`cd ${BASH_SOURCE[0]%/*}/../;pwd`
+export COMPASS_DIR
+
+apt-get install screen
+screen -ls |grep deploy|awk -F. '{print $1}'|xargs kill -9
+screen -wipe
+#screen -dmSL deploy bash $COMPASS_DIR/ci/launch.sh $*
+$COMPASS_DIR/ci/launch.sh $*