From c763aae4538f5966985681d3c3fdaa4d5ede4762 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 11 Jul 2017 17:50:23 +0000 Subject: [PATCH] Removing 'hostname -d' output from stdout during postinstall --- src/yunohost/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yunohost/tools.py b/src/yunohost/tools.py index bcca5b0e9..1ac123a9d 100644 --- a/src/yunohost/tools.py +++ b/src/yunohost/tools.py @@ -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