3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #178447 from Francesco149/dendrite-prestart

This commit is contained in:
Sandro 2023-03-03 18:45:09 +01:00 committed by GitHub
commit 2665f5e379
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -288,11 +288,11 @@ in
LimitNOFILE = 65535; LimitNOFILE = 65535;
EnvironmentFile = lib.mkIf (cfg.environmentFile != null) cfg.environmentFile; EnvironmentFile = lib.mkIf (cfg.environmentFile != null) cfg.environmentFile;
LoadCredential = cfg.loadCredential; LoadCredential = cfg.loadCredential;
ExecStartPre = '' ExecStartPre = [''
${pkgs.envsubst}/bin/envsubst \ ${pkgs.envsubst}/bin/envsubst \
-i ${configurationYaml} \ -i ${configurationYaml} \
-o /run/dendrite/dendrite.yaml -o /run/dendrite/dendrite.yaml
''; ''];
ExecStart = lib.strings.concatStringsSep " " ([ ExecStart = lib.strings.concatStringsSep " " ([
"${pkgs.dendrite}/bin/dendrite-monolith-server" "${pkgs.dendrite}/bin/dendrite-monolith-server"
"--config /run/dendrite/dendrite.yaml" "--config /run/dendrite/dendrite.yaml"