Skip to content

Commit 43f27f6

Browse files
authored
Merge pull request #191 from maevsi/fix/postgres/service-role-prefix
fix(postgres): correct service role prefix in initialization script
2 parents 91f4cb1 + b672776 commit 43f27f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/production/configurations/postgres/docker-entrypoint-initdb.d/additional-databases.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ postgres_user="$(cat /run/secrets/postgres_user)"
66

77
create_database_and_role() {
88
db_name="$1"
9-
password_file="/run/secrets/postgres_role_${db_name}_password"
10-
username_file="/run/secrets/postgres_role_${db_name}_username"
9+
password_file="/run/secrets/postgres_role_service_${db_name}_password"
10+
username_file="/run/secrets/postgres_role_service_${db_name}_username"
1111

1212
if [ ! -f "$password_file" ]; then
1313
echo "[WARN] Password file for '$db_name' not found, skipping creation" >&2

0 commit comments

Comments
 (0)