Skip to content
This repository was archived by the owner on Nov 29, 2020. It is now read-only.

Commit d5269f2

Browse files
author
Feng Honglin
committed
Merge pull request #70 from sofuture/patch-1
fix typos
2 parents b2b6f72 + 034af6a commit d5269f2

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

5.5/run.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ if [ -n "${REPLICATION_SLAVE}" ]; then
102102
sed -i "s/^#log-bin.*/log-bin = mysql-bin/" ${CONF_FILE}
103103
touch /replication_set.1
104104
else
105-
echo "=> MySQL replicaiton slave already configured, skip"
105+
echo "=> MySQL replication slave already configured, skip"
106106
fi
107107
else
108108
echo "=> Cannot configure slave, please link it to another MySQL container with alias as 'mysql'"
@@ -139,7 +139,7 @@ if [ -n "${STARTUP_SQL}" ]; then
139139
fi
140140

141141
# Set MySQL REPLICATION - MASTER
142-
if [ -n "${REPLICATION_MASTER}" ]; then
142+
if [ -n "${REPLICATION_MASTER}" ]; then
143143
echo "=> Configuring MySQL replication as master (2/2) ..."
144144
if [ ! -f /replication_set.2 ]; then
145145
echo "=> Creating a log user ${REPLICATION_USER}:${REPLICATION_PASS}"
@@ -154,7 +154,7 @@ if [ -n "${REPLICATION_MASTER}" ]; then
154154
fi
155155

156156
# Set MySQL REPLICATION - SLAVE
157-
if [ -n "${REPLICATION_SLAVE}" ]; then
157+
if [ -n "${REPLICATION_SLAVE}" ]; then
158158
echo "=> Configuring MySQL replication as slave (2/2) ..."
159159
if [ -n "${MYSQL_PORT_3306_TCP_ADDR}" ] && [ -n "${MYSQL_PORT_3306_TCP_PORT}" ]; then
160160
if [ ! -f /replication_set.2 ]; then
@@ -164,7 +164,7 @@ if [ -n "${REPLICATION_SLAVE}" ]; then
164164
echo "=> Done!"
165165
touch /replication_set.2
166166
else
167-
echo "=> MySQL replicaiton slave already configured, skip"
167+
echo "=> MySQL replication slave already configured, skip"
168168
fi
169169
else
170170
echo "=> Cannot configure slave, please link it to another MySQL container with alias as 'mysql'"

5.6/run.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ if [ -n "${REPLICATION_SLAVE}" ]; then
102102
sed -i "s/^#log-bin.*/log-bin = mysql-bin/" ${CONF_FILE}
103103
touch /replication_set.1
104104
else
105-
echo "=> MySQL replicaiton slave already configured, skip"
105+
echo "=> MySQL replication slave already configured, skip"
106106
fi
107107
else
108108
echo "=> Cannot configure slave, please link it to another MySQL container with alias as 'mysql'"
@@ -139,7 +139,7 @@ if [ -n "${STARTUP_SQL}" ]; then
139139
fi
140140

141141
# Set MySQL REPLICATION - MASTER
142-
if [ -n "${REPLICATION_MASTER}" ]; then
142+
if [ -n "${REPLICATION_MASTER}" ]; then
143143
echo "=> Configuring MySQL replication as master (2/2) ..."
144144
if [ ! -f /replication_set.2 ]; then
145145
echo "=> Creating a log user ${REPLICATION_USER}:${REPLICATION_PASS}"
@@ -154,7 +154,7 @@ if [ -n "${REPLICATION_MASTER}" ]; then
154154
fi
155155

156156
# Set MySQL REPLICATION - SLAVE
157-
if [ -n "${REPLICATION_SLAVE}" ]; then
157+
if [ -n "${REPLICATION_SLAVE}" ]; then
158158
echo "=> Configuring MySQL replication as slave (2/2) ..."
159159
if [ -n "${MYSQL_PORT_3306_TCP_ADDR}" ] && [ -n "${MYSQL_PORT_3306_TCP_PORT}" ]; then
160160
if [ ! -f /replication_set.2 ]; then
@@ -164,7 +164,7 @@ if [ -n "${REPLICATION_SLAVE}" ]; then
164164
echo "=> Done!"
165165
touch /replication_set.2
166166
else
167-
echo "=> MySQL replicaiton slave already configured, skip"
167+
echo "=> MySQL replication slave already configured, skip"
168168
fi
169169
else
170170
echo "=> Cannot configure slave, please link it to another MySQL container with alias as 'mysql'"

0 commit comments

Comments
 (0)