Skip to content

Commit e0a7195

Browse files
authored
Fix appending users.txt which broke in #83 (#89)
The users.txt file must be appended to as multiple postgres dbs in POSTGRES_URLS, we need to add all the creds to the users.txt file, not reset it for every entry in POSTGRES_URLS.
1 parent 948fa64 commit e0a7195

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/gen-pgbouncer-conf.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ connect = $DB_HOST:$DB_PORT
8686
retry = ${PGBOUNCER_CONNECTION_RETRY:-"no"}
8787
EOFEOF
8888

89-
cat > /app/vendor/pgbouncer/users.txt << EOFEOF
89+
cat >> /app/vendor/pgbouncer/users.txt << EOFEOF
9090
"$DB_USER" "$DB_MD5_PASS"
9191
EOFEOF
9292

0 commit comments

Comments
 (0)