From 0b5ffbc9a7966873e5551dc9c47b5ac36960e86e Mon Sep 17 00:00:00 2001 From: Julien Malik Date: Thu, 3 Sep 2015 18:23:14 +0200 Subject: [PATCH] Only redirect standard error otherwise the test always fails --- install_yunohostv2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_yunohostv2 b/install_yunohostv2 index b2c9a8d..cba4fa4 100755 --- a/install_yunohostv2 +++ b/install_yunohostv2 @@ -121,7 +121,7 @@ set_domain() { # Configure hostname to yunohost.yunohost.org if not already set # NOTE: This is done also during postinstall "to avoid amavis bug" # so we might not need it here - [[ "$(hostname -d > /dev/null 2>&1)" != "" ]] || hostname yunohost.yunohost.org > /dev/null 2>&1 + [[ "$(hostname -d 2>/dev/null)" != "" ]] || hostname yunohost.yunohost.org > /dev/null 2>&1 } confirm_installation() {