From 93f2034572bf21e29c0e3425ba751f6ffbe491c5 Mon Sep 17 00:00:00 2001 From: luhaoling <2198702716@qq.com> Date: Thu, 22 Feb 2024 14:41:46 +0800 Subject: [PATCH] fix: fix the error --- scripts/install/openim-api.sh | 6 ++++-- scripts/lib/util.sh | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/install/openim-api.sh b/scripts/install/openim-api.sh index b84d80c8f..96f571e1c 100755 --- a/scripts/install/openim-api.sh +++ b/scripts/install/openim-api.sh @@ -47,12 +47,14 @@ function openim::api::start() { openim::log::info "Starting ${SERVER_NAME} ..." + readonly OPENIM_API_SERVER_LIBRARIES="${OPENIM_OUTPUT_HOSTBIN}/${SERVER_NAME}" + openim::util::stop_services_with_name ${OPENIM_API_SERVER_LIBRARIES} + + printf "+------------------------+--------------+\n" printf "| Service Name | Port |\n" printf "+------------------------+--------------+\n" - 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[@]} for ((i=0; i