Commit e482f6ee authored by 罗永亮's avatar 罗永亮

Update entrypoint.sh

parent 609751ff
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment