mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Hiding useless message (?)
This commit is contained in:
parent
f221c2f06c
commit
0373da4a46
1 changed files with 2 additions and 2 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Add table
Reference in a new issue