[bitnami/pgbouncer] Release 1.20.1-debian-11-r33 (#48578)
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
parent
ab4c05570a
commit
466fa2cda7
|
|
@ -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-11T13:46:19Z" \
|
||||
org.opencontainers.image.created="2023-09-14T16:48:20Z" \
|
||||
org.opencontainers.image.description="Application packaged by VMware, Inc" \
|
||||
org.opencontainers.image.licenses="Apache-2.0" \
|
||||
org.opencontainers.image.ref.name="1.20.1-debian-11-r30" \
|
||||
org.opencontainers.image.ref.name="1.20.1-debian-11-r33" \
|
||||
org.opencontainers.image.title="pgbouncer" \
|
||||
org.opencontainers.image.vendor="VMware, Inc." \
|
||||
org.opencontainers.image.version="1.20.1"
|
||||
|
|
|
|||
|
|
@ -170,11 +170,11 @@ pgbouncer_is_file_external() {
|
|||
# None
|
||||
#########################
|
||||
pgbouncer_escape_auth() {
|
||||
# shellcheck disable=SC2001
|
||||
# replace each " with ""
|
||||
echo "$1" | sed 's/"/""/g'
|
||||
}
|
||||
|
||||
|
||||
########################
|
||||
# Ensure PgBouncer is initialized
|
||||
# Globals:
|
||||
|
|
@ -203,8 +203,7 @@ pgbouncer_initialize() {
|
|||
info "Configuring credentials"
|
||||
# Create credentials file
|
||||
if ! pgbouncer_is_file_external "userlist.txt"; then
|
||||
echo "\""$(pgbouncer_escape_auth "$POSTGRESQL_USERNAME")"\" \""$(pgbouncer_escape_auth "$POSTGRESQL_PASSWORD")"\"" \
|
||||
> "$PGBOUNCER_AUTH_FILE"
|
||||
echo "pgbouncer_escape_auth $POSTGRESQL_USERNAME" "pgbouncer_escape_auth $POSTGRESQL_PASSWORD" > "$PGBOUNCER_AUTH_FILE"
|
||||
echo "$PGBOUNCER_USERLIST" >> "$PGBOUNCER_AUTH_FILE"
|
||||
else
|
||||
debug "User list file mounted externally, skipping configuration"
|
||||
|
|
|
|||
Loading…
Reference in New Issue