From f63c820a3f375f16cf459b6a7dfa0949881785c2 Mon Sep 17 00:00:00 2001 From: Wish Date: Fri, 25 Mar 2022 14:21:47 +0800 Subject: [PATCH] playground: fix cp error when encountered readonly files --- components/playground/playground.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/playground/playground.go b/components/playground/playground.go index 93296777b5..715aa8e1ca 100644 --- a/components/playground/playground.go +++ b/components/playground/playground.go @@ -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)