From 59c8c0d100c9f6b044b2faea7040133328707945 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 75f7223d3..5571f7c03 100644 --- a/src/yunohost/tools.py +++ b/src/yunohost/tools.py @@ -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