about summary refs log tree commit diff
path: root/nixos/tests/vaultwarden.nix
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2023-11-07 18:30:16 +0300
committerK900 <me@0upti.me>2023-11-07 18:30:16 +0300
commit7d4e359579121c7f08dc7687518e42af55d9a5ab (patch)
treea71201b856165737645b23cf40a4e0436c7b3a30 /nixos/tests/vaultwarden.nix
parentd4c81f85cbba852a0daff05973034e80ee190fc8 (diff)
nixos/tests/vaultwarden: fix database creation
Diffstat (limited to 'nixos/tests/vaultwarden.nix')
-rw-r--r--nixos/tests/vaultwarden.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos/tests/vaultwarden.nix b/nixos/tests/vaultwarden.nix
index 95d00c1d8ec14..5dcd3ab39dcff 100644
--- a/nixos/tests/vaultwarden.nix
+++ b/nixos/tests/vaultwarden.nix
@@ -54,9 +54,8 @@ let
             services.postgresql = {
               enable = true;
               initialScript = pkgs.writeText "postgresql-init.sql" ''
-                CREATE DATABASE bitwarden;
                 CREATE USER bitwardenuser WITH PASSWORD '${dbPassword}';
-                GRANT ALL PRIVILEGES ON DATABASE bitwarden TO bitwardenuser;
+                CREATE DATABASE bitwarden WITH OWNER bitwardenuser;
               '';
             };