mirror of
https://github.com/bitnami/containers.git
synced 2026-03-16 06:49:12 +08:00
Ignore comments in databases section (#26087)
Signed-off-by: Mike Brancato <mbrancato@users.noreply.github.com>
This commit is contained in:
@@ -205,7 +205,7 @@ pgbouncer_initialize() {
|
|||||||
if ! is_empty_value "$PGBOUNCER_CONNECT_QUERY"; then
|
if ! is_empty_value "$PGBOUNCER_CONNECT_QUERY"; then
|
||||||
database_value+=" connect_query='${PGBOUNCER_CONNECT_QUERY}'"
|
database_value+=" connect_query='${PGBOUNCER_CONNECT_QUERY}'"
|
||||||
fi
|
fi
|
||||||
ini-file set --section "databases" --key "$PGBOUNCER_DATABASE" --value "$database_value" "$PGBOUNCER_CONF_FILE"
|
ini-file set --ignore-inline-comments --section "databases" --key "$PGBOUNCER_DATABASE" --value "$database_value" "$PGBOUNCER_CONF_FILE"
|
||||||
|
|
||||||
i=0;
|
i=0;
|
||||||
while true; VAR_NAME="PGBOUNCER_DSN_${i}";
|
while true; VAR_NAME="PGBOUNCER_DSN_${i}";
|
||||||
@@ -214,7 +214,7 @@ pgbouncer_initialize() {
|
|||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
dsn=${!VAR_NAME};
|
dsn=${!VAR_NAME};
|
||||||
ini-file set --section databases --key "$(echo "$dsn" | cut -d = -f 1)" --value "$(echo "$dsn" | cut -d = -f 2-)" "$PGBOUNCER_CONF_FILE";
|
ini-file set --ignore-inline-comments --section databases --key "$(echo "$dsn" | cut -d = -f 1)" --value "$(echo "$dsn" | cut -d = -f 2-)" "$PGBOUNCER_CONF_FILE";
|
||||||
i=$(( "$i" + 1 ));
|
i=$(( "$i" + 1 ));
|
||||||
fi;
|
fi;
|
||||||
done;
|
done;
|
||||||
|
|||||||
Reference in New Issue
Block a user