diff options
author | K900 <me@0upti.me> | 2023-11-07 18:30:16 +0300 |
---|---|---|
committer | K900 <me@0upti.me> | 2023-11-07 18:30:16 +0300 |
commit | 7d4e359579121c7f08dc7687518e42af55d9a5ab (patch) | |
tree | a71201b856165737645b23cf40a4e0436c7b3a30 /nixos/tests/vaultwarden.nix | |
parent | d4c81f85cbba852a0daff05973034e80ee190fc8 (diff) |
nixos/tests/vaultwarden: fix database creation
Diffstat (limited to 'nixos/tests/vaultwarden.nix')
-rw-r--r-- | nixos/tests/vaultwarden.nix | 3 |
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; ''; }; |