diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2018-02-26 15:42:33 +0800 |
---|---|---|
committer | Harry Huang <huangxiangyu5@huawei.com> | 2018-02-26 16:31:32 +0800 |
commit | 1ab8dd1113931331c74177d31a5e6fc10ce8809d (patch) | |
tree | 3cccaf2b162a1be65210e071bc3ecf6ffa6734ec | |
parent | efb348fd43239ef934fde64e57e977c532a86051 (diff) |
Modify deploy variable
JIRA: -
Under current deploy procedure, when compass
containers are running, they will not be
recreated during redeploy. Using DEPLOY_FIRST_TIME
to determine to run the container create process
when first time deploy
Change-Id: Ic13fd84ed41afdad29c96f803feff3298cbbcfde
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
-rwxr-xr-x | deploy/launch.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/deploy/launch.sh b/deploy/launch.sh index 2b32c337..76e8f254 100755 --- a/deploy/launch.sh +++ b/deploy/launch.sh @@ -56,7 +56,10 @@ if [[ "$EXPANSION" == "false" ]]; then export machines CONTAINER_ALIVE=$(check_container_alive) - if [[ "$DEPLOY_COMPASS" == "true" && "$CONTAINER_ALIVE" == "false" ]]; then + if + [[ "$DEPLOY_FIRST_TIME" == "true" ]] || + [[ "$DEPLOY_COMPASS" == "true" && "$CONTAINER_ALIVE" == "false" ]] + then if ! prepare_env;then echo "prepare_env failed" exit 1 @@ -72,7 +75,9 @@ if [[ "$EXPANSION" == "false" ]]; then log_error "launch_compass failed" exit 1 fi - elif [[ "$DEPLOY_COMPASS" == "true" && "$CONTAINER_ALIVE" == "true" ]]; then + elif + [[ "$DEPLOY_COMPASS" == "true" && "$CONTAINER_ALIVE" == "true" ]] + then refresh_compass_core fi else |