From 5b6fb8b364c0400b677716c7cb87046d305e7d67 Mon Sep 17 00:00:00 2001 From: Kaitlyn Swann Date: Wed, 4 Sep 2024 08:40:10 -0600 Subject: [PATCH] 10391: add master creds to user script --- scripts/postgres/create-user.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/postgres/create-user.ts b/scripts/postgres/create-user.ts index 4d37cbb0bea..d256718076a 100644 --- a/scripts/postgres/create-user.ts +++ b/scripts/postgres/create-user.ts @@ -13,7 +13,11 @@ if (!databaseName) { } async function grantPrivileges() { - const db = await connect({ ...POOL }); + const db = await connect({ + ...POOL, + password: process.env.POSTGRES_MASTER_PASSWORD, + user: process.env.POSTGRES_MASTER_USERNAME, + }); try { await sql`CREATE USER ${sql.raw(userToCreate)} WITH LOGIN;`.execute(db);