Skip to content

Commit

Permalink
Bugfix - Installer crash if there are more than one entry for the hos…
Browse files Browse the repository at this point in the history
…tname in /etc/hosts
  • Loading branch information
lucascbeyeler committed Jan 19, 2018
1 parent a67139c commit 1a91d92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion installScript/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down

0 comments on commit 1a91d92

Please sign in to comment.