Unverified Commit 1042f611 authored by Matthew Fisher's avatar Matthew Fisher Committed by GitHub

Merge pull request #3122 from cofyc/fix_charts_permission

Remove executable permission bit for charts downloaded from remote repos
parents 646ab43b 126f0249
...@@ -93,7 +93,7 @@ func (c *ChartDownloader) DownloadTo(ref, version, dest string) (string, *proven ...@@ -93,7 +93,7 @@ func (c *ChartDownloader) DownloadTo(ref, version, dest string) (string, *proven
name := filepath.Base(u.Path) name := filepath.Base(u.Path)
destfile := filepath.Join(dest, name) destfile := filepath.Join(dest, name)
if err := ioutil.WriteFile(destfile, data.Bytes(), 0655); err != nil { if err := ioutil.WriteFile(destfile, data.Bytes(), 0644); err != nil {
return destfile, nil, err return destfile, nil, err
} }
...@@ -109,7 +109,7 @@ func (c *ChartDownloader) DownloadTo(ref, version, dest string) (string, *proven ...@@ -109,7 +109,7 @@ func (c *ChartDownloader) DownloadTo(ref, version, dest string) (string, *proven
return destfile, ver, nil return destfile, ver, nil
} }
provfile := destfile + ".prov" provfile := destfile + ".prov"
if err := ioutil.WriteFile(provfile, body.Bytes(), 0655); err != nil { if err := ioutil.WriteFile(provfile, body.Bytes(), 0644); err != nil {
return destfile, nil, err return destfile, nil, err
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment