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