mirror of
https://github.com/bitnami/containers.git
synced 2026-02-12 15:17:15 +08:00
[bitnami/mongodb-sharded] Release 5.0.21-debian-11-r12 (#49772)
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
@@ -7,10 +7,10 @@ ARG TARGETARCH
|
||||
|
||||
LABEL com.vmware.cp.artifact.flavor="sha256:1e1b4657a77f0d47e9220f0c37b9bf7802581b93214fff7d1bd2364c8bf22e8e" \
|
||||
org.opencontainers.image.base.name="docker.io/bitnami/minideb:bullseye" \
|
||||
org.opencontainers.image.created="2023-09-21T20:34:20Z" \
|
||||
org.opencontainers.image.created="2023-09-23T21:30:09Z" \
|
||||
org.opencontainers.image.description="Application packaged by VMware, Inc" \
|
||||
org.opencontainers.image.licenses="Apache-2.0" \
|
||||
org.opencontainers.image.ref.name="5.0.21-debian-11-r10" \
|
||||
org.opencontainers.image.ref.name="5.0.21-debian-11-r12" \
|
||||
org.opencontainers.image.title="mongodb-sharded" \
|
||||
org.opencontainers.image.vendor="VMware, Inc." \
|
||||
org.opencontainers.image.version="5.0.21"
|
||||
|
||||
@@ -488,9 +488,15 @@ mongodb_set_journal_conf() {
|
||||
local mongodb_conf
|
||||
|
||||
if ! mongodb_is_file_external "$conf_file_name"; then
|
||||
if [[ -n "$MONGODB_ENABLE_JOURNAL" ]]; then
|
||||
mongodb_conf="$(sed -E "/^ *journal:/,/^ *[^:]*:/s/enabled:.*/enabled: $({ is_boolean_yes "$MONGODB_ENABLE_JOURNAL" && echo 'true'; } || echo 'false')/" "$conf_file_path")"
|
||||
# Disable journal.enabled since it is not supported from 7.0 on
|
||||
if [[ "$(mongodb_get_version)" =~ ^7\..\. ]]; then
|
||||
mongodb_conf="$(sed '/journal:/,/enabled: .*/d' "$conf_file_path")"
|
||||
echo "$mongodb_conf" >"$conf_file_path"
|
||||
else
|
||||
if [[ -n "$MONGODB_ENABLE_JOURNAL" ]]; then
|
||||
mongodb_conf="$(sed -E "/^ *journal:/,/^ *[^:]*:/s/enabled:.*/enabled: $({ is_boolean_yes "$MONGODB_ENABLE_JOURNAL" && echo 'true'; } || echo 'false')/" "$conf_file_path")"
|
||||
echo "$mongodb_conf" >"$conf_file_path"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
debug "$conf_file_name mounted. Skipping setting log settings"
|
||||
|
||||
Reference in New Issue
Block a user