diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2022-07-16 14:00:46 +0200 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2022-07-16 14:00:46 +0200 |
commit | 4adf26f01893ed98f9ebbc55cbf87cb1be57a54a (patch) | |
tree | c738a4df1ac8d76cb9f227d58d2ae82140d58208 /nixos | |
parent | bccaac95357abafe114ee20a39a5d9c91253d5bc (diff) |
nixos/privacyidea-ldap-proxy: always run envsubst
Otherwise the file doesn't exist at the expected location.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/security/privacyidea.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos/modules/services/security/privacyidea.nix b/nixos/modules/services/security/privacyidea.nix index 190feaf657f3b..d48266e4a7596 100644 --- a/nixos/modules/services/security/privacyidea.nix +++ b/nixos/modules/services/security/privacyidea.nix @@ -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 |