Skip to content

Commit

Permalink
playground: fix cp error when encountered readonly files (#1816)
Browse files Browse the repository at this point in the history
  • Loading branch information
breezewish authored and AstroProfundis committed Apr 12, 2022
1 parent f523cd5 commit 7f4c157
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 @@ -1108,7 +1108,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 7f4c157

Please sign in to comment.