Skip to content

Commit

Permalink
fix issue #632
Browse files Browse the repository at this point in the history
  • Loading branch information
jianhaiqing authored and AMecea committed Jan 29, 2021
1 parent 2a95c33 commit f0f5756
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/sidecar/appconf.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ func RunConfigCommand(cfg *Config) error {
return fmt.Errorf("copy file my.cnf: %s", err)
}

if err = copyFile(mountConfigDir+"/"+shPreStop, configDir+"/"+shPreStop); err != nil {
return fmt.Errorf("copy file %s: %s", shPreStop, err)
}

if err = os.Mkdir(confDPath, os.FileMode(0755)); err != nil {
if !os.IsExist(err) {
return fmt.Errorf("error mkdir %s/conf.d: %s", configDir, err)
Expand Down
2 changes: 2 additions & 0 deletions pkg/sidecar/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,6 @@ var (

// xbstream Executable Name
xbstreamCommand = "xbstream"

shPreStop = constants.ShPreStop
)

0 comments on commit f0f5756

Please sign in to comment.