mirror of https://github.com/dapr/cli.git
Merge branch 'release-0.8' into merge-back
This commit is contained in:
commit
17c236ca8e
|
@ -187,7 +187,12 @@ func getDownloadDest(installLocation string) (string, error) {
|
||||||
p = path.Join(usr.HomeDir, ".dapr")
|
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 {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
@ -396,12 +401,13 @@ func createComponentsDir(wg *sync.WaitGroup, errorChan chan<- error, dir, versio
|
||||||
componentsDir := GetDefaultComponentsFolder()
|
componentsDir := GetDefaultComponentsFolder()
|
||||||
_, err := os.Stat(componentsDir)
|
_, err := os.Stat(componentsDir)
|
||||||
if os.IsNotExist(err) {
|
if os.IsNotExist(err) {
|
||||||
errDir := os.MkdirAll(componentsDir, 0755)
|
errDir := os.MkdirAll(componentsDir, 0777)
|
||||||
if errDir != nil {
|
if errDir != nil {
|
||||||
errorChan <- fmt.Errorf("error creating default components folder: %s", errDir)
|
errorChan <- fmt.Errorf("error creating default components folder: %s", errDir)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
os.Chmod(componentsDir, 0777)
|
||||||
}
|
}
|
||||||
|
|
||||||
func makeExecutable(filepath string) error {
|
func makeExecutable(filepath string) error {
|
||||||
|
|
Loading…
Reference in New Issue