Removing 'hostname -d' output from stdout during postinstall

This commit is contained in:
Alexandre Aubin 2017-07-11 17:50:23 +00:00
parent b2648584ab
commit c763aae453

View file

@ -320,7 +320,7 @@ def tools_postinstall(domain, password, ignore_dyndns=False):
os.system('chmod 755 /home/yunohost.app')
# Set hostname to avoid amavis bug
if os.system('hostname -d') != 0:
if os.system('hostname -d >/dev/null') != 0:
os.system('hostname yunohost.yunohost.org')
# Add a temporary SSOwat rule to redirect SSO to admin page