From 14159a490e94ee9e87931c9b37314ab070ef7e8c Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 7 Jul 2017 14:51:54 +0000 Subject: [PATCH] We also need to regen nsswitch before ldapinit otherwise sudo doesnt work --- src/yunohost/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yunohost/tools.py b/src/yunohost/tools.py index ea59a3308..2a2c5bc67 100644 --- a/src/yunohost/tools.py +++ b/src/yunohost/tools.py @@ -281,7 +281,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