Skip to content

Commit

Permalink
playground: fix cp error when encountered readonly files
Browse files Browse the repository at this point in the history
  • Loading branch information
breezewish committed Mar 25, 2022
1 parent ca49c7e commit f63c820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/playground/playground.go
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ func (p *Playground) bootGrafana(ctx context.Context, env *environment.Environme
dataDir := p.dataDir
grafanaDir := filepath.Join(dataDir, "grafana")

cmd := exec.Command("cp", "-r", installPath, grafanaDir)
cmd := exec.Command("cp", "-Rfp", installPath, grafanaDir)
err = cmd.Run()
if err != nil {
return nil, errors.AddStack(err)
Expand Down

0 comments on commit f63c820

Please sign in to comment.