mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-02 18:34:29 +08:00
fix: fix the param error
This commit is contained in:
parent
6c4f914bd1
commit
c2c8810331
@ -45,15 +45,15 @@ function openim::api::start() {
|
||||
echo "++ OPENIM_API_PORT_LISTARIES: ${OPENIM_API_PORT_LISTARIES[@]}"
|
||||
echo "++ OpenIM API config path: ${OPENIM_API_CONFIG}"
|
||||
|
||||
readonly OPENIM_API_SERVER_LIBRARIES=("${OPENIM_OUTPUT_HOSTBIN}/${SERVER_NAME}")
|
||||
openim::util::stop_services_with_name ${OPENIM_API_SERVER_LIBRARIES[@]}
|
||||
|
||||
openim::log::info "Starting ${SERVER_NAME} ..."
|
||||
|
||||
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<length; i++)); do
|
||||
printf "| %-22s | %6s |\n" "${OPENIM_API_SERVICE_LISTARIES[$i]}" "${OPENIM_API_PORT_LISTARIES[$i]}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user