From f14a0457c26467248a388d1e8ca59d6ef31e4a0e Mon Sep 17 00:00:00 2001 From: Kabbone Date: Tue, 27 Dec 2022 20:52:04 +0100 Subject: [PATCH] services: update postgres init --- modules/services/server/postgresql.nix | 4 ++-- secrets/services/postgresql/initScript.age | Bin 1695 -> 1746 bytes 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/services/server/postgresql.nix b/modules/services/server/postgresql.nix index 6be682c..658f2c4 100644 --- a/modules/services/server/postgresql.nix +++ b/modules/services/server/postgresql.nix @@ -30,7 +30,7 @@ host signaldb mautrixsignal samehost scram-sha-256 host keycloakdb keycloak samehost scram-sha-256 ''; - initialScript = config.age.secrets."services/postgresql/initScript".path; + initialScript = config.age.secrets."services/postgresql/initScript.sql".path; ensureDatabases = [ "giteadb" "nextclouddb" @@ -88,7 +88,7 @@ services.postgresqlBackup.enable = true; - age.secrets."services/postgresql/initScript" = { + age.secrets."services/postgresql/initScript.sql" = { file = ../../../secrets/services/postgresql/initScript.age; owner = "postgres"; }; diff --git a/secrets/services/postgresql/initScript.age b/secrets/services/postgresql/initScript.age index e6bab0c75d7e026e6e1c69bc6fd7388868795476..22a77e3031e35a7d05f81c3f4935628179695d78 100644 GIT binary patch literal 1746 zcmY+?{ms4;FC4{T0k8bGGJ%&{35y38dAONa~30YM0JkM2oSUN*NeR8U!%IDYU4|ANmC z-)~Oh$=x3zaxaM*IlWkxSQ4I`*Ee#O{OUo@v8pkNZnxe=?XuV+&^HfX3wx%$8j~nC@ zyW7O*R3F+?7({>=g8FJ{sx!7inn6q=J;YQIgPsd!Q_T(FSuY;<$~Nf8IYG%*=O`J> z^sqK12ZMCrU=Wbi9g3tFv%uD@ZcmrBs9ZE*LH0`(xk1e!zY~t5Y8)}D=4df#mMn*? zl?^_$gdC@}c%bH!!=&kk#YrP3M6)<$CC+OzB3qrpe1dD58dNBdlX;(y^1>)|+qx6i zNQH=^ELh`gK%qIAn-wZHEY;CaBAaxcs)&Bz4z+@r^}&lFoR)6|Q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