ソースを参照

add deploy/deploy_wisecloud_latest.sh

krrish 7 年 前
コミット
0167f877d5
共有1 個のファイルを変更した8 個の追加4 個の削除を含む
  1. 8 4
      deploy/deploy_wisecloud_latest.sh

+ 8 - 4
deploy/deploy_wisecloud_latest.sh

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