mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[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:
parent
64fc8ed5dd
commit
504baefd87
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,7 @@ import requests
|
||||||
import json
|
import json
|
||||||
import errno
|
import errno
|
||||||
import logging
|
import logging
|
||||||
|
import subprocess
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
|
|
||||||
import apt
|
import apt
|
||||||
|
@ -82,6 +83,7 @@ def tools_ldapinit(auth):
|
||||||
}
|
}
|
||||||
|
|
||||||
auth.update('cn=admin', admin_dict)
|
auth.update('cn=admin', admin_dict)
|
||||||
|
subprocess.call(['nscd', '-i', 'passwd'])
|
||||||
|
|
||||||
logger.success(m18n.n('ldap_initialized'))
|
logger.success(m18n.n('ldap_initialized'))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue