Skip to content

Commit

Permalink
fix default installation directory permissions (#1375)
Browse files Browse the repository at this point in the history
Signed-off-by: Kenny Meador <[email protected]>
Signed-off-by: Kenny Meador <[email protected]>
Co-authored-by: Kenny Meador <[email protected]>
Co-authored-by: Mukundan Sundararajan <[email protected]>
  • Loading branch information
3 people committed Jan 23, 2024
1 parent 50e1dff commit 2380446
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/standalone/standalone.go
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ func makeDefaultComponentsDir(installDir string) error {
}
}

os.Chmod(componentsDir, 0o777)
os.Chmod(componentsDir, 0o755)
return nil
}

Expand Down Expand Up @@ -1030,12 +1030,12 @@ func checkAndOverWriteFile(filePath string, b []byte) error {
}

func prepareDaprInstallDir(daprBinDir string) error {
err := os.MkdirAll(daprBinDir, 0o777)
err := os.MkdirAll(daprBinDir, 0o755)
if err != nil {
return err
}

err = os.Chmod(daprBinDir, 0o777)
err = os.Chmod(daprBinDir, 0o755)
if err != nil {
return err
}
Expand Down

0 comments on commit 2380446

Please sign in to comment.