From 6f5464e34f1bd9c0ae721f284e98c1bc5cdc659b Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Thu, 21 Mar 2024 15:54:38 +0800 Subject: [PATCH] Optimizing scripts --- scripts/install/openim-tools.sh | 2 +- scripts/start-all.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/install/openim-tools.sh b/scripts/install/openim-tools.sh index dfbc871af..a310bf54c 100755 --- a/scripts/install/openim-tools.sh +++ b/scripts/install/openim-tools.sh @@ -119,7 +119,7 @@ function openim::tools::start_service() { function openim::tools::start() { openim::log::info "Starting OpenIM Tools..." for tool in "${OPENIM_TOOLS_NAME_LISTARIES[@]}"; do - openim::log::info "Starting tool ${tool}..." + openim::log::colorless "Starting tool ${tool}..." # openim::tools::start_service ${tool} #sleep 0.2 done diff --git a/scripts/start-all.sh b/scripts/start-all.sh index a70803d70..1816cffb3 100755 --- a/scripts/start-all.sh +++ b/scripts/start-all.sh @@ -83,16 +83,16 @@ fi # TODO Prelaunch tools, simple for now, can abstract functions later TOOLS_START_SCRIPTS_PATH=${START_SCRIPTS_PATH}/openim-tools.sh -openim::log::status "Start the preprocessing tools:" +openim::log::status "Start the pre-start tools:" if ! ${TOOLS_START_SCRIPTS_PATH} openim::tools::pre-start; then - openim::log::error "Start the preprocessing tools, aborting!" + openim::log::error "Start the pre-start tools, aborting!" exit 1 fi -openim::log::colorless "Preprocessing has been successfully completed!" +openim::log::colorless "pre-start has been successfully completed!" result=$("${OPENIM_ROOT}"/scripts/stop-all.sh) if [[ $? -ne 0 ]]; then @@ -122,7 +122,7 @@ if [[ $? -ne 0 ]]; then fi -openim::log::info "Post Starting openim services" +openim::log::status "Start the post-start tools:" ${TOOLS_START_SCRIPTS_PATH} openim::tools::post-start openim::log::success "All openim services have been successfully started!" \ No newline at end of file