feat: add config path

Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
Xinwei Xiong(cubxxw-openim)
2023-08-22 15:38:50 +08:00
parent 859063ddba
commit 7f4de7fda7
15 changed files with 265 additions and 104 deletions
+6 -5
View File
@@ -34,17 +34,18 @@ print_services_and_ports() {
local -n service_names=$1
local -n service_ports=$2
echo "+-------------------+-------+"
echo "| Service Name | Port |"
echo "+-------------------+-------+"
echo "+-------------------------+----------+"
echo "| Service Name | Port |"
echo "+-------------------------+----------+"
for index in "${!service_names[@]}"; do
printf "| %-17s | %-5s |\n" "${service_names[$index]}" "${service_ports[$index]}"
printf "| %-23s | %-8s |\n" "${service_names[$index]}" "${service_ports[$index]}"
done
echo "+-------------------+-------+"
echo "+-------------------------+----------+"
}
# Print out services and their ports
print_services_and_ports OPENIM_SERVER_NAME_TARGETS OPENIM_SERVER_PORT_TARGETS