Skip to content

Commit

Permalink
fix: dir permissions for existing dirs
Browse files Browse the repository at this point in the history
Signed-off-by: mikeee <hey@mike.ee>
  • Loading branch information
mikeee committed Jul 19, 2024
1 parent c0d30fa commit 6b66c03
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/standalone/standalone.go
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,12 @@ func runSchedulerService(wg *sync.WaitGroup, errorChan chan<- error, info initIn
if info.schedulerVolume != nil {
if *info.schedulerVolume == "" {
schedulerDataDir := path_filepath.Join(info.installDir, "data/scheduler")
if err = os.MkdirAll(schedulerDataDir, 0o777); err != nil {
if err = os.MkdirAll(schedulerDataDir, 0o755); err != nil {
errorChan <- err
return
}
// if dir exists, change the permissions

Check failure on line 653 in pkg/standalone/standalone.go

View workflow job for this annotation

GitHub Actions / Build linux_amd64 binaries

Comment should end in a period (godot)
if err = os.Chmod(schedulerDataDir, 0o777); err != nil {
errorChan <- err
return
}
Expand Down

0 comments on commit 6b66c03

Please sign in to comment.