From 604586c3baefcc1d874f249f7ab93db73325d10e Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Thu, 21 Mar 2024 15:40:35 +0800 Subject: [PATCH] Optimizing scripts --- scripts/install/openim-tools.sh | 4 ++-- scripts/start-all.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install/openim-tools.sh b/scripts/install/openim-tools.sh index 237f3d4ce..dfbc871af 100755 --- a/scripts/install/openim-tools.sh +++ b/scripts/install/openim-tools.sh @@ -108,7 +108,7 @@ function openim::tools::start_service() { local status=$? if [ $status -eq 0 ]; then - openim::log::success "Service ${binary_name} started successfully." + openim::log::colorless "Service ${binary_name} started successfully." return 0 else openim::log::error "Failed to start service ${binary_name}." @@ -141,7 +141,7 @@ function openim::tools::pre-start() { function openim::tools::post-start() { #openim::log::info "Post-start actions for OpenIM Tools..." for tool in "${OPENIM_TOOLS_POST_START_NAME_LISTARIES[@]}"; do - openim::log::info "Starting tool ${tool}..." + openim::log::info "Starting tool: ${tool}" openim::tools::start_service ${tool} done } diff --git a/scripts/start-all.sh b/scripts/start-all.sh index 2c288d9c5..661a7e01b 100755 --- a/scripts/start-all.sh +++ b/scripts/start-all.sh @@ -122,7 +122,7 @@ if [[ $? -ne 0 ]]; then fi -openim::log::info "\n## Post Starting openim services" +openim::log::info "Post Starting openim services" ${TOOLS_START_SCRIPTS_PATH} openim::tools::post-start openim::log::success "All openim services have been successfully started!" \ No newline at end of file