Skip to content

Commit

Permalink
Merge pull request #126 from briandowns/issue-125
Browse files Browse the repository at this point in the history
update permissions on bin dir
  • Loading branch information
briandowns authored Jul 25, 2020
2 parents 1f7bd37 + 3ee9ccb commit 3083b77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/bootstrap/stage.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ func Stage(dataDir string, images images.Images) (string, error) {
if err := extractFromDir(binDir, "/bin/", img, images.Runtime); err != nil {
return "", err
}
if err := os.Chmod(binDir, 0755); err != nil {
return "", err
}

manifestDir := manifestsDir(dataDir)
err = extractFromDir(manifestDir, "/charts/", img, images.Runtime)
Expand Down Expand Up @@ -153,7 +156,6 @@ func extractFromDir(dir, prefix string, img v1.Image, imgName string) error {
return err
}
defer os.RemoveAll(tempDir)

r := mutate.Extract(img)
defer r.Close()

Expand Down

0 comments on commit 3083b77

Please sign in to comment.