[bitnami/mongodb] Release 5.0.20-debian-11-r13 (#47825)

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Bitnami Bot 2023-09-08 17:03:16 +02:00 committed by GitHub
parent c3a146cbcb
commit 261f10dab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 12 deletions

View File

@ -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-04T16:19:44Z" \
org.opencontainers.image.created="2023-09-07T19:03:27Z" \
org.opencontainers.image.description="Application packaged by VMware, Inc" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.ref.name="5.0.20-debian-11-r10" \
org.opencontainers.image.ref.name="5.0.20-debian-11-r13" \
org.opencontainers.image.title="mongodb" \
org.opencontainers.image.vendor="VMware, Inc." \
org.opencontainers.image.version="5.0.20"

View File

@ -1389,16 +1389,6 @@ configure_permissions() {
mongodb_initialize() {
info "Initializing MongoDB..."
if am_i_root; then
debug "Ensuring MongoDB daemon user/group exists"
ensure_user_exists "$MONGODB_DAEMON_USER" --group "$MONGODB_DAEMON_GROUP"
debug "Ensuring Mongosh directory '$MONGOSH_DIR' exists"
ensure_dir_exists "$MONGOSH_DIR"
if [[ -n "${MONGODB_DAEMON_USER:-}" ]]; then
chown -R "${MONGODB_DAEMON_USER:-}" "$MONGODB_BASE_DIR" "$MONGODB_DATA_DIR" "$MONGOSH_DIR"
fi
fi
rm -f "$MONGODB_PID_FILE"
mongodb_copy_mounted_config
mongodb_set_net_conf "$MONGODB_CONF_FILE"

View File

@ -36,6 +36,7 @@ for dir in "$MONGODB_TMP_DIR" "$MONGODB_LOG_DIR" "$MONGODB_DATA_DIR"; do
ensure_dir_exists "$dir"
am_i_root && chown -R "${MONGODB_DAEMON_USER}:${MONGODB_DAEMON_GROUP}" "$dir"
done
am_i_root && configure_permissions_ownership "$MONGODB_CONF_FILE" -f "640" -g "$MONGODB_DAEMON_GROUP"
# Ensure MongoDB is initialized
mongodb_initialize