From 94e279094a1b599b96b06903aea6929d5d0a9473 Mon Sep 17 00:00:00 2001 From: Fiona Grzebien Date: Fri, 8 Nov 2024 01:22:57 +0100 Subject: [PATCH] Create mas database in postgres initialScript --- config/hosts/matrix/postgresql.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/hosts/matrix/postgresql.nix b/config/hosts/matrix/postgresql.nix index 03b753a..06d10e2 100644 --- a/config/hosts/matrix/postgresql.nix +++ b/config/hosts/matrix/postgresql.nix @@ -8,6 +8,11 @@ TEMPLATE template0 LC_COLLATE = "C" LC_CTYPE = "C"; + CREATE ROLE "mas_user" WITH LOGIN PASSWORD 'mas'; + CREATE DATABASE "mas" WITH OWNER "mas_user" + TEMPLATE template0 + LC_COLLATE = "C" + LC_CTYPE = "C"; ''; }; }