From 9318322fa5eeaffeba149c3deed07cf24576bdd4 Mon Sep 17 00:00:00 2001 From: luhaoling <2198702716@qq.com> Date: Thu, 22 Feb 2024 13:26:56 +0800 Subject: [PATCH] fix: fix the error --- scripts/install/openim-api.sh | 2 +- scripts/lib/util.sh | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/scripts/install/openim-api.sh b/scripts/install/openim-api.sh index 4ae41643c..b84d80c8f 100755 --- a/scripts/install/openim-api.sh +++ b/scripts/install/openim-api.sh @@ -51,7 +51,7 @@ function openim::api::start() { printf "| Service Name | Port |\n" printf "+------------------------+--------------+\n" - readonly OPENIM_API_SERVER_LIBRARIES=("${OPENIM_OUTPUT_HOSTBIN}/${SERVER_NAME}") + readonly OPENIM_API_SERVER_LIBRARIES="${OPENIM_OUTPUT_HOSTBIN}/${SERVER_NAME}" openim::util::stop_services_with_name ${OPENIM_API_SERVER_LIBRARIES} local length=${#OPENIM_API_SERVICE_LISTARIES[@]} diff --git a/scripts/lib/util.sh b/scripts/lib/util.sh index f5f459420..9b7dd036c 100755 --- a/scripts/lib/util.sh +++ b/scripts/lib/util.sh @@ -677,11 +677,8 @@ openim::util::stop_services_with_name() { done - timeout=15 - start_time=$SECONDS - - timeout=15 # 设置超时时间为 15 秒 - start_time=$SECONDS + timeout=15 + start_time=$SECONDS while :; do all_pids_empty=true