We also need to regen nsswitch before ldapinit otherwise sudo doesnt work

This commit is contained in:
Alexandre Aubin 2017-07-07 14:51:54 +00:00
parent 6fc3f08cda
commit ddebd9f091

View file

@ -295,7 +295,7 @@ def tools_postinstall(domain, password, ignore_dyndns=False):
logger.info(m18n.n('yunohost_installing'))
service_regen_conf(['nslcd'], force=True)
service_regen_conf(['nslcd', 'nsswitch'], force=True)
# Initialize LDAP for YunoHost
# TODO: Improve this part by integrate ldapinit into conf_regen hook