From 1a91d928e83ed22b6243465f901a90dd0a86b7b5 Mon Sep 17 00:00:00 2001 From: Lucas Costa Beyeler Date: Fri, 19 Jan 2018 11:42:06 -0200 Subject: [PATCH] Bugfix - Installer crash if there are more than one entry for the hostname in /etc/hosts --- installScript/check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installScript/check.sh b/installScript/check.sh index 99559d6..d28231d 100644 --- a/installScript/check.sh +++ b/installScript/check.sh @@ -50,7 +50,7 @@ function check_env() { function check_config() { echo "Recovering all the configuration... Please wait" OSE_INSTALL_HOSTNAME=`su - $OSE_USER -c "zmhostname"` - OSE_INSTALL_ADDRESS=`grep $OSE_INSTALL_HOSTNAME /etc/hosts|awk '{print $1}'` + OSE_INSTALL_ADDRESS=`grep -m 1 $OSE_INSTALL_HOSTNAME /etc/hosts|awk '{print $1}'` OSE_INSTALL_LDAPPASS=`su - $OSE_USER -c "zmlocalconfig -s zimbra_ldap_password"|awk '{print $3}'` echo ""