Skip to content

Commit

Permalink
[fix] avoid random bug on post-install due to nscd cache\n\nThanks to…
Browse files Browse the repository at this point in the history
… the work of Alex Aubin who've managed to discover why this was happening and propose a solution.
  • Loading branch information
Psycojoker committed Nov 28, 2016
1 parent 64fc8ed commit 504baef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/yunohost/tools.py
Expand Up @@ -32,6 +32,7 @@
import json
import errno
import logging
import subprocess
from collections import OrderedDict

import apt
Expand Down Expand Up @@ -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'))

Expand Down

0 comments on commit 504baef

Please sign in to comment.