Skip to content

Commit

Permalink
integration-tests/basic: Fix Postgres permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaofengli committed Dec 18, 2023
1 parent e7a5828 commit 75c0482
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions integration-tests/basic/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ let
ensureUsers = [
{
name = "atticd";
ensurePermissions = {
"DATABASE attic" = "ALL PRIVILEGES";
};
}

# For testing only - Don't actually do this
Expand All @@ -64,6 +61,10 @@ let
];
};

systemd.services.postgresql.postStart = lib.mkAfter ''
$PSQL -tAc 'ALTER DATABASE "attic" OWNER TO "atticd"'
'';

services.atticd.settings = {
database.url = "postgresql:///attic?host=/run/postgresql";
};
Expand Down

0 comments on commit 75c0482

Please sign in to comment.