diff --git a/src/yunohost/tools.py b/src/yunohost/tools.py index 5571f7c0..bcca5b0e 100644 --- a/src/yunohost/tools.py +++ b/src/yunohost/tools.py @@ -104,7 +104,7 @@ def tools_ldapinit(): auth.update('cn=admin', admin_dict) # Force nscd to refresh cache to take admin creation into account - subprocess.call(['nscd', '-i', 'passwd']) + subprocess.call(['nscd', '-i', 'passwd'], stderr=open(os.devnull, 'wb')) # Check admin actually exists now try: @@ -203,7 +203,7 @@ def _set_hostname(hostname, pretty_hostname=None): pretty_hostname = "(YunoHost/%s)" % hostname # First clear nsswitch cache for hosts to make sure hostname is resolved... - subprocess.call(['nscd', '-i', 'hosts']) + subprocess.call(['nscd', '-i', 'hosts'], stderr=open(os.devnull, 'wb')) # Then call hostnamectl commands = [