From 74e88a55c0e9b5d72597ded2d01993c138748274 Mon Sep 17 00:00:00 2001 From: Mr db-predelanet LXC Date: Wed, 21 Oct 2020 08:13:56 +0000 Subject: [PATCH] Fix bash if logic expression with compare strings. --- start-replication.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[@]}