nixos/tests/vaultwarden: fix database creation

This commit is contained in:
K900 2023-11-07 18:30:16 +03:00
parent d4c81f85cb
commit 7d4e359579

View file

@ -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;
'';
};