Skip to content

Commit

Permalink
ldap module: fix activationScripts declaration
Browse files Browse the repository at this point in the history
(cherry picked from commit 19ee3ba)

Closes #11361
  • Loading branch information
markus2342 authored and obadz committed Aug 9, 2016
1 parent cf62a27 commit d6f1895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/config/ldap.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d6f1895

Please sign in to comment.