Skip to content

Commit 7a25f09

Browse files
authored
chore: untar pgbouncer userlist for AIO image (#685)
1 parent 62a07e6 commit 7a25f09

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docker/all-in-one/init/configure-pgbouncer.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ PGBOUNCER_CONF=/etc/pgbouncer/pgbouncer.ini
1111
if [ -f "${INIT_PAYLOAD_PATH:-}" ]; then
1212
echo "init pgbouncer payload"
1313
sed -i -E "s|^# (%include /etc/pgbouncer-custom/ssl-config.ini)$|\1|g" $PGBOUNCER_CONF
14+
15+
tar -xzvf "$INIT_PAYLOAD_PATH" -C /etc/pgbouncer/ --strip-components 3 ./etc/pgbouncer/userlist.txt
16+
chown -R pgbouncer:pgbouncer /etc/pgbouncer/userlist.txt
1417
fi
1518

1619
if [ "${DATA_VOLUME_MOUNTPOINT}" ]; then

0 commit comments

Comments
 (0)