Hiding useless message (?)

This commit is contained in:
Alexandre Aubin 2017-07-08 00:44:00 +00:00 committed by root
parent c113a00375
commit a9e90390bc

View file

@ -102,7 +102,7 @@ def tools_ldapinit():
auth.update('cn=admin', admin_dict) auth.update('cn=admin', admin_dict)
# Force nscd to refresh cache to take admin creation into account # 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 # Check admin actually exists now
try: try:
@ -201,7 +201,7 @@ def _set_hostname(hostname, pretty_hostname=None):
pretty_hostname = "(YunoHost/%s)" % hostname pretty_hostname = "(YunoHost/%s)" % hostname
# First clear nsswitch cache for hosts to make sure hostname is resolved... # 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 # Then call hostnamectl
commands = [ commands = [