[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.

This commit is contained in:
Laurent Peuch 2016-11-28 02:06:45 +01:00
parent 64fc8ed5dd
commit 504baefd87

View file

@ -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'))