nscd -i won't work in chroot ... also 'groups' was a typo, actual name is 'group'

This commit is contained in:
Alexandre Aubin 2021-05-24 22:10:56 +02:00
parent 600b96782e
commit 806b7acfb3

View file

@ -54,8 +54,8 @@ EOF
| grep -v "none elapsed\|Closing DB" || true
chown -R openldap: /var/lib/ldap
nscd -i groups
nscd -i passwd
nscd -i group || true
nscd -i passwd || true
systemctl restart slapd
@ -157,7 +157,7 @@ objectClass: posixGroup
objectClass: top"
chown -R openldap: /var/lib/ldap
systemctl restart slapd
nscd -i groups
nscd -i group
fi
[ -z "$regen_conf_files" ] && exit 0