Skip to content

Commit 1c9ddb8

Browse files
authored
Merge pull request #446 from runkecheng/fix_special_sh
container: rename special.sh
2 parents bf93a6b + f65ea52 commit 1c9ddb8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mysqlcluster/container/init_mysql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (c *initMysql) getImage() string {
4545
// getCommand get the container command.
4646
func (c *initMysql) getCommand() []string {
4747
// Because initialize mysql contain error, so do it in commands.
48-
return []string{"sh", "-c", "/docker-entrypoint.sh mysqld;if test -f /docker-entrypoint-initdb.d/special.sh; then /docker-entrypoint-initdb.d/special.sh; fi "}
48+
return []string{"sh", "-c", "/docker-entrypoint.sh mysqld;if test -f /docker-entrypoint-initdb.d/plugin.sh; then /docker-entrypoint-initdb.d/plugin.sh; fi "}
4949
}
5050

5151
// getEnvVars get the container env.

mysqlcluster/container/init_mysql_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func TestGetInitMysqlImage(t *testing.T) {
115115
}
116116

117117
func TestGetInitMysqlCommand(t *testing.T) {
118-
assert.Equal(t, initMysqlCase.Command, []string{"sh", "-c", "/docker-entrypoint.sh mysqld;if test -f /docker-entrypoint-initdb.d/special.sh; then /docker-entrypoint-initdb.d/special.sh; fi "})
118+
assert.Equal(t, initMysqlCase.Command, []string{"sh", "-c", "/docker-entrypoint.sh mysqld;if test -f /docker-entrypoint-initdb.d/plugin.sh; then /docker-entrypoint-initdb.d/plugin.sh; fi "})
119119
}
120120

121121
func TestGetInitMysqlEnvVar(t *testing.T) {

0 commit comments

Comments
 (0)