diff options
author | Markus Mueller <john.subscriber@markus.institute> | 2016-05-23 20:43:22 +0000 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2016-05-23 22:54:15 +0200 |
commit | 19ee3baa32d9cf74db392c1c88855a22f9391aff (patch) | |
tree | aa9197586bca9eab8ca58ed17b9848d0a13f3a0e /nixos/modules | |
parent | 3f22610bd797bc4f47311dcd982bf45eb107713a (diff) |
ldap module: fix activationScripts declaration
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/config/ldap.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/config/ldap.nix b/nixos/modules/config/ldap.nix index a6657768e061..7064ef64b4c8 100644 --- a/nixos/modules/config/ldap.nix +++ b/nixos/modules/config/ldap.nix @@ -192,7 +192,7 @@ in system.activationScripts = mkIf insertLdapPassword { ldap = stringAfter [ "etc" "groups" "users" ] '' if test -f "${cfg.bind.password}" ; then - echo "bindpw "$(cat ${cfg.bind.password})"" | cat ${ldapConfig} - > /etc/ldap.conf.bindpw + echo "bindpw "$(cat ${cfg.bind.password})"" | cat ${ldapConfig.source} - > /etc/ldap.conf.bindpw mv -fT /etc/ldap.conf.bindpw /etc/ldap.conf chmod 600 /etc/ldap.conf fi |