From 754659d655b8691cd760671bf69600b2e8803790 Mon Sep 17 00:00:00 2001 From: Grigory Shipunov Date: Sun, 5 Mar 2023 15:41:42 +0100 Subject: [PATCH] fix postgres username --- modules/data-hoarder/postgres.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/data-hoarder/postgres.nix b/modules/data-hoarder/postgres.nix index 760c6a4..993c40a 100644 --- a/modules/data-hoarder/postgres.nix +++ b/modules/data-hoarder/postgres.nix @@ -40,9 +40,9 @@ ${inputs.tlms-rs.packages.x86_64-linux.run-migration}/bin/run-migration # fixup permissions - $PSQL -c "GRANT ALL ON DATABASE tlms TO dvbdump;" - $PSQL -d tlms -c "GRANT ALL ON ALL TABLES IN SCHEMA public TO dvbdump;" - $PSQL -d tlms -c "GRANT ALL ON ALL SEQUENCES IN SCHEMA public TO dvbdump;" + $PSQL -c "GRANT ALL ON DATABASE tlms TO tlms;" + $PSQL -d tlms -c "GRANT ALL ON ALL TABLES IN SCHEMA public TO tlms;" + $PSQL -d tlms -c "GRANT ALL ON ALL SEQUENCES IN SCHEMA public TO tlms;" unset DATABASE_URL '';