From 47f342a44b814b49a67fb2d1f5695f605f3c84fc Mon Sep 17 00:00:00 2001 From: Zamentur aka ljf Date: Sat, 26 Sep 2015 23:12:37 +0200 Subject: [PATCH] [fix] Allow to create a DockerFile by ignore hostname change failure --- install_yunohostv2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install_yunohostv2 b/install_yunohostv2 index 057592a..4e5752b 100755 --- a/install_yunohostv2 +++ b/install_yunohostv2 @@ -132,7 +132,8 @@ 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 2>/dev/null)" != "" ]] || hostname yunohost.yunohost.org > /dev/null 2>&1 + [[ "$(hostname -d 2>/dev/null)" != "" ]] || hostname yunohost.yunohost.org \ + || echo 'Hostname change is not permitted' > /dev/null 2>&1 } confirm_installation() {