diff --git a/bitnami/redis-cluster/7.0/debian-11/Dockerfile b/bitnami/redis-cluster/7.0/debian-11/Dockerfile index 1bb03efddc0c..a7a57b5d5e96 100644 --- a/bitnami/redis-cluster/7.0/debian-11/Dockerfile +++ b/bitnami/redis-cluster/7.0/debian-11/Dockerfile @@ -3,10 +3,10 @@ FROM docker.io/bitnami/minideb:bullseye ARG TARGETARCH LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bullseye" \ - org.opencontainers.image.created="2023-04-10T22:40:07Z" \ + org.opencontainers.image.created="2023-04-13T23:05:51Z" \ org.opencontainers.image.description="Application packaged by VMware, Inc" \ org.opencontainers.image.licenses="Apache-2.0" \ - org.opencontainers.image.ref.name="7.0.10-debian-11-r7" \ + org.opencontainers.image.ref.name="7.0.10-debian-11-r8" \ org.opencontainers.image.title="redis-cluster" \ org.opencontainers.image.vendor="VMware, Inc." \ org.opencontainers.image.version="7.0.10" diff --git a/bitnami/redis-cluster/7.0/debian-11/rootfs/opt/bitnami/scripts/libredis.sh b/bitnami/redis-cluster/7.0/debian-11/rootfs/opt/bitnami/scripts/libredis.sh index a5a23f11a27e..976b056b17bc 100644 --- a/bitnami/redis-cluster/7.0/debian-11/rootfs/opt/bitnami/scripts/libredis.sh +++ b/bitnami/redis-cluster/7.0/debian-11/rootfs/opt/bitnami/scripts/libredis.sh @@ -55,10 +55,10 @@ redis_conf_set() { [[ "$value" = "" ]] && value="\"$value\"" # Determine whether to enable the configuration for RDB persistence, if yes, do not enable the replacement operation - if [ ${key} == "save" ];then - echo "${key} ${value}" >> ${REDIS_BASE_DIR}/etc/redis.conf - else - replace_in_file "${REDIS_BASE_DIR}/etc/redis.conf" "^#*\s*${key} .*" "${key} ${value}" false + if [ "${key}" == "save" ];then + echo "${key} ${value}" >> "${REDIS_BASE_DIR}/etc/redis.conf" + else + replace_in_file "${REDIS_BASE_DIR}/etc/redis.conf" "^#*\s*${key} .*" "${key} ${value}" false fi } @@ -414,8 +414,6 @@ redis_configure_default() { done fi - - redis_conf_set port "$REDIS_PORT_NUMBER" # TLS configuration if is_boolean_yes "$REDIS_TLS_ENABLED"; then diff --git a/bitnami/redis-cluster/7.0/debian-11/rootfs/opt/bitnami/scripts/redis-cluster-env.sh b/bitnami/redis-cluster/7.0/debian-11/rootfs/opt/bitnami/scripts/redis-cluster-env.sh index 01af41bdfcf8..f508b6a6bc24 100644 --- a/bitnami/redis-cluster/7.0/debian-11/rootfs/opt/bitnami/scripts/redis-cluster-env.sh +++ b/bitnami/redis-cluster/7.0/debian-11/rootfs/opt/bitnami/scripts/redis-cluster-env.sh @@ -101,7 +101,7 @@ export REDIS_DAEMON_GROUP="redis" export REDIS_DISABLE_COMMANDS="${REDIS_DISABLE_COMMANDS:-}" export REDIS_DATABASE="${REDIS_DATABASE:-redis}" export REDIS_AOF_ENABLED="${REDIS_AOF_ENABLED:-yes}" -export REDIS_RDB_POLICY="${REDIS_RDB_POLICY:-""}" +export REDIS_RDB_POLICY="${REDIS_RDB_POLICY:-}" export REDIS_MASTER_HOST="${REDIS_MASTER_HOST:-}" export REDIS_MASTER_PORT_NUMBER="${REDIS_MASTER_PORT_NUMBER:-6379}" export REDIS_DEFAULT_PORT_NUMBER="6379" # only used at build time