nixos/tests/vaultwarden: fix database creation
This commit is contained in:
parent
d4c81f85cb
commit
7d4e359579
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue