modules: services: nginx-sso: use writeShellScript
This commit is contained in:
parent
58a94bdf1b
commit
45c3b82606
|
@ -59,8 +59,7 @@ in
|
||||||
StateDirectory = "nginx-sso";
|
StateDirectory = "nginx-sso";
|
||||||
WorkingDirectory = "/var/lib/nginx-sso";
|
WorkingDirectory = "/var/lib/nginx-sso";
|
||||||
# The files to be merged might not have the correct permissions
|
# The files to be merged might not have the correct permissions
|
||||||
ExecStartPre = ''+${pkgs.writeScript "merge-nginx-sso-config" ''
|
ExecStartPre = ''+${pkgs.writeShellScript "merge-nginx-sso-config" ''
|
||||||
#!${lib.getExe pkgs.bash}
|
|
||||||
rm -f '${confPath}'
|
rm -f '${confPath}'
|
||||||
${utils.genJqSecretsReplacementSnippet cfg.configuration confPath}
|
${utils.genJqSecretsReplacementSnippet cfg.configuration confPath}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue