about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorRaito Bezarius <masterancpp@gmail.com>2023-11-17 15:52:29 +0100
committerRaito Bezarius <masterancpp@gmail.com>2023-11-17 15:53:08 +0100
commit10baca4935656089dabca0f07e3ef89f1f954375 (patch)
treeccdf0c34be571519b9b94797ec0a94838252f118 /nixos/tests
parentf653734c4dabbc041e7fcc72149f93567b10137c (diff)
nixos/invidious: do not use `ensureDBOwnership`
Invidious uses a strange setup where the database name is different from the system username
for non-explicit reasons.

Because of that, it makes it hard to migrate it to use `ensureDBOwnership`, we leave it to Invidious' maintainers
to pick up the pieces.
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/invidious.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos/tests/invidious.nix b/nixos/tests/invidious.nix
index 582d1550fff1a..701e8e5e7a3fc 100644
--- a/nixos/tests/invidious.nix
+++ b/nixos/tests/invidious.nix
@@ -44,8 +44,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
             enable = true;
             initialScript = pkgs.writeText "init-postgres-with-password" ''
               CREATE USER kemal WITH PASSWORD 'correct horse battery staple';
-              CREATE DATABASE invidious;
-              GRANT ALL PRIVILEGES ON DATABASE invidious TO kemal;
+              CREATE DATABASE invidious OWNER kemal;
             '';
           };
       };