fix #28 added --address flags for API port (#31)

* added --address flags for API port
Authored-by: kuksik <nazzar.lito@gmail.com>
This commit is contained in:
kuksik 2021-10-29 12:40:46 +03:00 committed by GitHub
parent 0aaf0c99b8
commit 0257e8e776
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ is_minio_running() {
#########################
minio_start_bg() {
local -r exec=$(command -v minio)
local -a args=("server" "--certs-dir" "${MINIO_CERTS_DIR}" "--console-address" ":${MINIO_CONSOLE_PORT_NUMBER}")
local -a args=("server" "--certs-dir" "${MINIO_CERTS_DIR}" "--console-address" ":${MINIO_CONSOLE_PORT_NUMBER}" "--address" ":${MINIO_API_PORT_NUMBER}")
local -a nodes
if is_boolean_yes "$MINIO_DISTRIBUTED_MODE_ENABLED"; then

View File

@ -17,7 +17,7 @@ set -o pipefail
# Constants
EXEC=$(command -v minio)
ARGS=("server" "--certs-dir" "${MINIO_CERTS_DIR}" "--console-address" ":${MINIO_CONSOLE_PORT_NUMBER}")
ARGS=("server" "--certs-dir" "${MINIO_CERTS_DIR}" "--console-address" ":${MINIO_CONSOLE_PORT_NUMBER}" "--address" ":${MINIO_API_PORT_NUMBER}")
# Add any extra flags passed to this script
ARGS+=("$@")
if is_boolean_yes "$MINIO_DISTRIBUTED_MODE_ENABLED"; then