Permalink
Browse files

fixing setup-cluster script for when there is multiple mysql_install_db

  • Loading branch information...
1 parent abd34db commit afd503a6fb03f147b3e103f5763a9ad03f92d201 @arthurnn arthurnn committed Jul 9, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 bin/lhm-spec-setup-cluster.sh
@@ -13,7 +13,6 @@ source ~/.lhm
# Main
#
-install_bin="$(echo ./*/mysql_install_db)"
mkdir -p "$basedir/master/data" "$basedir/slave/data"
@@ -61,7 +60,7 @@ CNF
(
cd "$mysqldir"
+ install_bin="$(echo ./*/mysql_install_db | tr " " "\\n" | head -1)"
$install_bin --datadir="$basedir/master/data"
$install_bin --datadir="$basedir/slave/data"
-
)

0 comments on commit afd503a

Please sign in to comment.