mirror of
https://github.com/bitnami/containers.git
synced 2026-03-11 07:39:06 +08:00
11.15.0-debian-10-r36 release
This commit is contained in:
@@ -27,7 +27,7 @@ COPY rootfs /
|
||||
RUN /opt/bitnami/scripts/postgresql/postunpack.sh
|
||||
RUN /opt/bitnami/scripts/locales/add-extra-locales.sh
|
||||
ENV BITNAMI_APP_NAME="postgresql" \
|
||||
BITNAMI_IMAGE_VERSION="11.15.0-debian-10-r35" \
|
||||
BITNAMI_IMAGE_VERSION="11.15.0-debian-10-r36" \
|
||||
LANG="en_US.UTF-8" \
|
||||
LANGUAGE="en_US:en" \
|
||||
NSS_WRAPPER_LIB="/opt/bitnami/common/lib/libnss_wrapper.so" \
|
||||
|
||||
@@ -158,8 +158,6 @@ postgresql_validate() {
|
||||
postgresql_create_config() {
|
||||
info "postgresql.conf file not detected. Generating it..."
|
||||
cp "$POSTGRESQL_BASE_DIR/share/postgresql.conf.sample" "$POSTGRESQL_CONF_FILE"
|
||||
# Configure port
|
||||
postgresql_set_property "port" "$POSTGRESQL_PORT_NUMBER"
|
||||
# Update default value for 'include_dir' directive
|
||||
# ref: https://github.com/postgres/postgres/commit/fb9c475597c245562a28d1e916b575ac4ec5c19f#diff-f5544d9b6d218cc9677524b454b41c60
|
||||
if ! grep include_dir "$POSTGRESQL_CONF_FILE" >/dev/null; then
|
||||
@@ -603,6 +601,8 @@ postgresql_initialize() {
|
||||
chmod go-rwx "$POSTGRESQL_DATA_DIR" || warn "Lack of permissions on data directory!"
|
||||
|
||||
is_boolean_yes "$POSTGRESQL_ALLOW_REMOTE_CONNECTIONS" && is_boolean_yes "$create_pghba_file" && postgresql_create_pghba && postgresql_allow_local_connection
|
||||
# Configure port
|
||||
postgresql_set_property "port" "$POSTGRESQL_PORT_NUMBER"
|
||||
|
||||
if ! is_dir_empty "$POSTGRESQL_DATA_DIR"; then
|
||||
info "Deploying PostgreSQL with persisted data..."
|
||||
|
||||
@@ -38,7 +38,6 @@ postgresql_custom_init_scripts
|
||||
if ! postgresql_is_file_external "postgresql.conf" && is_boolean_yes "$POSTGRESQL_ALLOW_REMOTE_CONNECTIONS"; then
|
||||
info "Enabling remote connections"
|
||||
postgresql_enable_remote_connections
|
||||
postgresql_set_property "port" "$POSTGRESQL_PORT_NUMBER"
|
||||
fi
|
||||
|
||||
# Remove any pg_hba.conf lines that match the given filters
|
||||
|
||||
Reference in New Issue
Block a user