aboutsummaryrefslogtreecommitdiffstats
path: root/deploy.sh
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2017-03-27 13:27:54 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-03-27 13:27:54 +0000
commitd52a11770689f4fd4d2bc4b9bf8dc09d4dd62ebf (patch)
tree1a36a5857e95419bfcdfba86ea09093b44f8626b /deploy.sh
parentc79c539411bec3da60bf60cb41906c63c1184ce5 (diff)
parent88a7278e949b7a4bb777d9f36f0e27eade2b46d6 (diff)
Merge "opera adapter fix2"
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/deploy.sh b/deploy.sh
index 891eadf9..e29b518f 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -39,6 +39,12 @@ if [[ -z $DEPLOY_COMPASS && -z $DEPLOY_HOST && -z $REDEPLOY_HOST ]]; then
fi
LOG_DIR=$COMPASS_DIR/work/deploy/log
+export LOG_DIR
+
mkdir -p $LOG_DIR
$COMPASS_DIR/deploy/launch.sh $* 2>&1 | tee $LOG_DIR/compass-deploy.log
+
+if [[ $(tail -1 $LOG_DIR/compass-deploy.log) != 'compass deploy success' ]]; then
+ exit 1
+fi