diff --git a/scripts/install/openim-tools.sh b/scripts/install/openim-tools.sh index 04cd70adf..6f25a0bd8 100755 --- a/scripts/install/openim-tools.sh +++ b/scripts/install/openim-tools.sh @@ -101,7 +101,13 @@ function openim::tools::start_service() { cmd="${cmd} --prometheus_port ${prometheus_port}" fi openim::log::status "Starting binary ${binary_name}..." + + + ${cmd} + + + local status=$? if [ $status -eq 0 ]; then diff --git a/tools/component/component.go b/tools/component/component.go index 256f87038..a0e312205 100644 --- a/tools/component/component.go +++ b/tools/component/component.go @@ -79,6 +79,7 @@ func main() { fmt.Printf("configGetEnv failed, err:%v", err) return } + checks := []checkFunc{ //{name: "Mysql", function: checkMysql}, @@ -101,6 +102,7 @@ func main() { if !check.flag { err = check.function(check.config) if err != nil { + if check.name == "Minio" { if errors.Is(err, errMinioNotEnabled) || errors.Is(err, errSignEndPoint) || @@ -109,7 +111,7 @@ func main() { checks[index].flag = true continue } - } + allSuccess = false component.ErrorPrint(fmt.Sprintf("Check component: %s failed:%v.", check.name, err.Error())) break