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:
parent
e7a5828192
commit
75c0482e85
1 changed files with 4 additions and 3 deletions
|
@ -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";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue