From 504baefd87a45edaf59ccb91da4f4c502f7019bc Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Mon, 28 Nov 2016 02:06:45 +0100 Subject: [PATCH] [fix] avoid random bug on post-install due to nscd cache\n\nThanks to the work of Alex Aubin who've managed to discover why this was happening and propose a solution. --- src/yunohost/tools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/yunohost/tools.py b/src/yunohost/tools.py index f78e32363..7d7d8d0cc 100644 --- a/src/yunohost/tools.py +++ b/src/yunohost/tools.py @@ -32,6 +32,7 @@ import requests import json import errno import logging +import subprocess from collections import OrderedDict import apt @@ -82,6 +83,7 @@ def tools_ldapinit(auth): } auth.update('cn=admin', admin_dict) + subprocess.call(['nscd', '-i', 'passwd']) logger.success(m18n.n('ldap_initialized'))