Merge branch 'release-0.8' into merge-back

This commit is contained in:
Young Bu Park 2020-06-09 22:22:34 -07:00
commit 17c236ca8e
1 changed files with 8 additions and 2 deletions

View File

@ -187,7 +187,12 @@ func getDownloadDest(installLocation string) (string, error) {
p = path.Join(usr.HomeDir, ".dapr")
}
err := os.MkdirAll(p, 0700)
err := os.MkdirAll(p, 0777)
if err != nil {
return "", err
}
err = os.Chmod(p, 0777)
if err != nil {
return "", err
}
@ -396,12 +401,13 @@ func createComponentsDir(wg *sync.WaitGroup, errorChan chan<- error, dir, versio
componentsDir := GetDefaultComponentsFolder()
_, err := os.Stat(componentsDir)
if os.IsNotExist(err) {
errDir := os.MkdirAll(componentsDir, 0755)
errDir := os.MkdirAll(componentsDir, 0777)
if errDir != nil {
errorChan <- fmt.Errorf("error creating default components folder: %s", errDir)
return
}
}
os.Chmod(componentsDir, 0777)
}
func makeExecutable(filepath string) error {