From: QiLiang Date: Fri, 10 Mar 2017 09:08:46 +0000 (+0800) Subject: Add deploy log to file X-Git-Tag: danube.1.RC1~12 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F77%2F30377%2F1;p=compass4nfv.git Add deploy log to file JIRA: - The default log file path is: work/deploy/log/compass-deploy.log Change-Id: I6f8ebb028d169a0da88f2a588e4563db4f2f1f76 Signed-off-by: QiLiang (cherry picked from commit 185218b1731357f1ef4ee4f2898519ede9a34912) --- diff --git a/deploy.sh b/deploy.sh index 915e4b98..891eadf9 100755 --- a/deploy.sh +++ b/deploy.sh @@ -38,4 +38,7 @@ if [[ -z $DEPLOY_COMPASS && -z $DEPLOY_HOST && -z $REDEPLOY_HOST ]]; then export DEPLOY_HOST="true" fi -$COMPASS_DIR/deploy/launch.sh $* +LOG_DIR=$COMPASS_DIR/work/deploy/log +mkdir -p $LOG_DIR + +$COMPASS_DIR/deploy/launch.sh $* 2>&1 | tee $LOG_DIR/compass-deploy.log