diff --git a/bitnami/valkey-sentinel/7.2/debian-12/Dockerfile b/bitnami/valkey-sentinel/7.2/debian-12/Dockerfile index f6683106bdf12..b708ff973760a 100644 --- a/bitnami/valkey-sentinel/7.2/debian-12/Dockerfile +++ b/bitnami/valkey-sentinel/7.2/debian-12/Dockerfile @@ -8,11 +8,11 @@ ARG TARGETARCH LABEL com.vmware.cp.artifact.flavor="sha256:c50c90cfd9d12b445b011e6ad529f1ad3daea45c26d20b00732fae3cd71f6a83" \ org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \ - org.opencontainers.image.created="2024-10-24T18:30:03Z" \ + org.opencontainers.image.created="2024-10-31T17:32:48Z" \ org.opencontainers.image.description="Application packaged by Broadcom, Inc." \ org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/valkey-sentinel/README.md" \ org.opencontainers.image.licenses="Apache-2.0" \ - org.opencontainers.image.ref.name="7.2.7-debian-12-r2" \ + org.opencontainers.image.ref.name="7.2.7-debian-12-r3" \ org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/valkey-sentinel" \ org.opencontainers.image.title="valkey-sentinel" \ org.opencontainers.image.vendor="Broadcom, Inc." \ diff --git a/bitnami/valkey-sentinel/7.2/debian-12/rootfs/opt/bitnami/scripts/libvalkeysentinel.sh b/bitnami/valkey-sentinel/7.2/debian-12/rootfs/opt/bitnami/scripts/libvalkeysentinel.sh index 77c9d7f44c757..2fb795d145d22 100644 --- a/bitnami/valkey-sentinel/7.2/debian-12/rootfs/opt/bitnami/scripts/libvalkeysentinel.sh +++ b/bitnami/valkey-sentinel/7.2/debian-12/rootfs/opt/bitnami/scripts/libvalkeysentinel.sh @@ -229,7 +229,11 @@ valkey_initialize() { valkey_conf_set "sentinel announce-hostnames" "${VALKEY_SENTINEL_ANNOUNCE_HOSTNAMES}" fi # This directive is only available in Valkey 7 - [[ $(valkey_version --major) -ge 7 ]] && valkey_conf_set "SENTINEL primary-reboot-down-after-period" "${VALKEY_PRIMARY_SET} ${VALKEY_SENTINEL_PRIMARY_REBOOT_DOWN_AFTER_PERIOD}" + if { [[ $(valkey_version --major) -eq 7 ]] }; then + valkey_conf_set "SENTINEL master-reboot-down-after-period" "${VALKEY_PRIMARY_SET} ${VALKEY_SENTINEL_PRIMARY_REBOOT_DOWN_AFTER_PERIOD}" + else + valkey_conf_set "SENTINEL primary-reboot-down-after-period" "${VALKEY_PRIMARY_SET} ${VALKEY_SENTINEL_PRIMARY_REBOOT_DOWN_AFTER_PERIOD}" + fi # Sentinel Configuration (maybe overwritten by more specific init blocks like TLS configuration) valkey_conf_set port "$VALKEY_SENTINEL_PORT_NUMBER"