1
0
Fork 0
mirror of https://github.com/zhaofengli/attic.git synced 2024-12-14 11:57:30 +00:00

integration-tests/basic: Fix Postgres permissions

See also https://github.com/NixOS/nixpkgs/pull/266270.
This commit is contained in:
Zhaofeng Li 2023-12-18 14:50:33 -07:00
parent e7a5828192
commit 75c0482e85

View file

@ -49,9 +49,6 @@ let
ensureUsers = [
{
name = "atticd";
ensurePermissions = {
"DATABASE attic" = "ALL PRIVILEGES";
};
}
# For testing only - Don't actually do this
@ -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";
};