nixos/privacyidea-ldap-proxy: always run envsubst
Otherwise the file doesn't exist at the expected location.
This commit is contained in:
parent
bccaac9535
commit
4adf26f018
|
@ -330,9 +330,8 @@ in
|
|||
StateDirectory = "privacyidea-ldap-proxy";
|
||||
EnvironmentFile = mkIf (cfg.ldap-proxy.environmentFile != null)
|
||||
cfg.ldap-proxy.environmentFile;
|
||||
ExecStartPre = mkIf (cfg.ldap-proxy.settings != {})
|
||||
ExecStartPre =
|
||||
"${pkgs.writeShellScript "substitute-secrets-ldap-proxy" ''
|
||||
set -x
|
||||
${pkgs.envsubst}/bin/envsubst \
|
||||
-i ${ldapProxyConfig} \
|
||||
-o $STATE_DIRECTORY/ldap-proxy.ini
|
||||
|
|
Loading…
Reference in a new issue