From e482f6eeca65d31dd5681bd08296323346a11a2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E6=B0=B8=E4=BA=AE?= Date: Mon, 9 Jan 2023 09:42:08 +0800 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 5852b7f..872de88 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -14,6 +14,8 @@ apply_permissions() { common_operation() { mkdir -p "${DATA_DIR}" + mkdir -p "/etc/redis/external.conf.d" + touch -p "/etc/redis/external.conf.d/redis-additional.conf" } set_redis_password() { @@ -33,7 +35,6 @@ redis_mode_setup() { if [[ "${SETUP_MODE}" == "cluster" ]]; then { echo cluster-enabled yes - echo cluster-node-timeout 5000 echo cluster-require-full-coverage no echo cluster-migration-barrier 1 echo cluster-config-file "${DATA_DIR}/nodes.conf" @@ -108,9 +109,7 @@ main_function() { redis_mode_setup persistence_setup tls_setup - if [[ -f "${EXTERNAL_CONFIG_FILE}" ]]; then - external_config - fi + external_config start_redis } -- 2.26.0