Browse Source

update deploy/deploy_wisecloud_latest.sh add a blnk line before exit

krrish 7 years ago
parent
commit
adfbb77c8e
1 changed files with 7 additions and 3 deletions
  1. 7 3
      deploy/deploy_wisecloud_latest.sh

+ 7 - 3
deploy/deploy_wisecloud_latest.sh

@@ -84,6 +84,7 @@ elif [ "$ENV" == "powercloudtest" ]; then
 
 
 else
 else
     echo "Please specify the right env that has access key and secret key, exit!"
     echo "Please specify the right env that has access key and secret key, exit!"
+    echo
     exit 1
     exit 1
 fi
 fi
 
 
@@ -161,7 +162,8 @@ for module in $APP; do
             answer_exists=false
             answer_exists=false
             echo "you define questions in docker-compose.yml"
             echo "you define questions in docker-compose.yml"
             echo "but there is no answer.txt in the compose directory, exit!"
             echo "but there is no answer.txt in the compose directory, exit!"
-            exit 5
+            echo
+            exit 2
         fi
         fi
      else
      else
         ENV_ARGS=""
         ENV_ARGS=""
@@ -186,14 +188,16 @@ for module in $APP; do
         # TODO
         # TODO
         if ! rancher-compose -p ${module} $ENV_ARGS upgrade <old_service> <new_service>; then 
         if ! rancher-compose -p ${module} $ENV_ARGS upgrade <old_service> <new_service>; then 
             echo "rancher-compose -p ${module} upgrade failed, exit!"
             echo "rancher-compose -p ${module} upgrade failed, exit!"
-            exit 1
+            echo
+            exit 3
         fi
         fi
     else
     else
         echo "creating & up $module..."
         echo "creating & up $module..."
         sleep 1
         sleep 1
         if ! rancher-compose -p ${module} $ENV_ARGS up -d; then
         if ! rancher-compose -p ${module} $ENV_ARGS up -d; then
             echo "rancher-compose -p ${module} up -d failed, exit!"
             echo "rancher-compose -p ${module} up -d failed, exit!"
-            exit 1
+            echo
+            exit 5
         fi
         fi
     fi
     fi