This is an automated email from the ASF dual-hosted git repository.

jiashuo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git


The following commit(s) were added to refs/heads/master by this push:
     new 58815ce  fix: ops tools-minos2 have no bootstrap function,use start 
function (#833)
58815ce is described below

commit 58815ce0a31b31187e82714d14e3835f3f014fb0
Author: Mazha <[email protected]>
AuthorDate: Tue Nov 2 17:40:09 2021 +0800

    fix: ops tools-minos2 have no bootstrap function,use start function (#833)
---
 scripts/minos_common.sh | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/scripts/minos_common.sh b/scripts/minos_common.sh
index 4dadabd..41b5bf5 100755
--- a/scripts/minos_common.sh
+++ b/scripts/minos_common.sh
@@ -149,8 +149,14 @@ function minos_bootstrap()
     options="$options --task $3"
   fi
   cd $minos_client_dir
-  echo "./deploy bootstrap pegasus $1 $options"
-  ./deploy bootstrap pegasus $1 $options
+  if [ $minos_type -eq 2 ]; then
+    # minos2 have no "bootstrap" function,use "start" function
+    echo "./deploy start pegasus $1 $options"
+    ./deploy start pegasus $1 $options
+  else
+    echo "./deploy bootstrap pegasus $1 $options"
+    ./deploy bootstrap pegasus $1 $options
+  fi
   if [ $? -ne 0 ]; then
     echo "ERROR: minos bootstrap failed"
     exit 1

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to