Browse Source

modify the shell script

sunyj 8 years ago
parent
commit
d3ca457e1e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      kanban-console/kanban

+ 3 - 3
kanban-console/kanban

@@ -56,8 +56,8 @@ restart(){
         startPort $port
         startPort $port
         SERVICE_STATUS="curl -s -w %{http_code} localhost:$port"
         SERVICE_STATUS="curl -s -w %{http_code} localhost:$port"
         while [ "`$SERVICE_STATUS`" = "000" ];do
         while [ "`$SERVICE_STATUS`" = "000" ];do
-            echo "[Port=$port] Wait 3s for current service..."
-            sleep 3
+            echo "[Port=$port] Wait 5s for current service..."
+            sleep 5
         done
         done
     done
     done
 }
 }
@@ -87,7 +87,7 @@ update(){
     fi
     fi
 }
 }
 
 
-function install() {
+install() {
     rm -rf $BASE_DIR/$WF.bak
     rm -rf $BASE_DIR/$WF.bak
     if [ -f $BASE_DIR/$WF ]; then
     if [ -f $BASE_DIR/$WF ]; then
         mv -f $BASE_DIR/$WF $BASE_DIR/$WF.bak
         mv -f $BASE_DIR/$WF $BASE_DIR/$WF.bak