fix: fix scripts and optimize

Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
Xinwei Xiong(cubxxw-openim)
2023-08-08 22:44:15 +08:00
parent da1316af2a
commit be6f189365
18 changed files with 131 additions and 61 deletions
+3 -3
View File
@@ -36,11 +36,11 @@ ulimit -n 200000
list1=$(cat $config_path | grep openImMessageGatewayPort | awk -F '[:]' '{print $NF}')
list2=$(cat $config_path | grep openImWsPort | awk -F '[:]' '{print $NF}')
list3=$(cat $config_path | grep messageGatewayPrometheusPort | awk -F '[:]' '{print $NF}')
list_to_string $list1
openim::util:list-to-string $list1
rpc_ports=($ports_array)
list_to_string $list2
openim::util:list-to-string $list2
ws_ports=($ports_array)
list_to_string $list3
openim::util:list-to-string $list3
prome_ports=($ports_array)
if [ ${#rpc_ports[@]} -ne ${#ws_ports[@]} ]; then