Skip to content

Commit 1a91d92

Browse files
author
Lucas Costa Beyeler
committed
Bugfix - Installer crash if there are more than one entry for the hostname in /etc/hosts
1 parent a67139c commit 1a91d92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

installScript/check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function check_env() {
5050
function check_config() {
5151
echo "Recovering all the configuration... Please wait"
5252
OSE_INSTALL_HOSTNAME=`su - $OSE_USER -c "zmhostname"`
53-
OSE_INSTALL_ADDRESS=`grep $OSE_INSTALL_HOSTNAME /etc/hosts|awk '{print $1}'`
53+
OSE_INSTALL_ADDRESS=`grep -m 1 $OSE_INSTALL_HOSTNAME /etc/hosts|awk '{print $1}'`
5454
OSE_INSTALL_LDAPPASS=`su - $OSE_USER -c "zmlocalconfig -s zimbra_ldap_password"|awk '{print $3}'`
5555
5656
echo ""

0 commit comments

Comments
 (0)