Browse Source

Fix bash if logic expression with compare strings.

master
Mr db-predelanet LXC 4 years ago
parent
commit
74e88a55c0
  1. 2
      start-replication.sh

2
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[@]}

Loading…
Cancel
Save