diff --git a/start-replication.sh b/start-replication.sh index 3c8ab7a..86ca329 100755 --- a/start-replication.sh +++ b/start-replication.sh @@ -28,7 +28,7 @@ mysql --defaults-extra-file=./.remote.my.cnf -e "$REMOTE_SQL" mysql --defaults-extra-file=./.my.cnf -e "START SLAVE;" -if [ "$1" -eq "master-to-master" ]; then +if [[ "$1" = "master-to-master" ]]; then LOCAL_SQL= for i in ${databases[@]}