From b672776d112ebdf1f224fd53e7c2ca48cd52b814 Mon Sep 17 00:00:00 2001 From: Jonas Thelemann Date: Tue, 6 May 2025 12:28:44 +0200 Subject: [PATCH] fix(postgres): correct service role prefix in initialization script --- .../docker-entrypoint-initdb.d/additional-databases.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/production/configurations/postgres/docker-entrypoint-initdb.d/additional-databases.sh b/src/production/configurations/postgres/docker-entrypoint-initdb.d/additional-databases.sh index 2f77c3a1..b4ca2e33 100755 --- a/src/production/configurations/postgres/docker-entrypoint-initdb.d/additional-databases.sh +++ b/src/production/configurations/postgres/docker-entrypoint-initdb.d/additional-databases.sh @@ -6,8 +6,8 @@ postgres_user="$(cat /run/secrets/postgres_user)" create_database_and_role() { db_name="$1" - password_file="/run/secrets/postgres_role_${db_name}_password" - username_file="/run/secrets/postgres_role_${db_name}_username" + password_file="/run/secrets/postgres_role_service_${db_name}_password" + username_file="/run/secrets/postgres_role_service_${db_name}_username" if [ ! -f "$password_file" ]; then echo "[WARN] Password file for '$db_name' not found, skipping creation" >&2