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