Skip to content

Commit

Permalink
Merge pull request #3369 from rgolangh/fix-ovirt-dir-perms
Browse files Browse the repository at this point in the history
Bug 1814172: [ovirt] Cannot run openshift-install as a non-root user
  • Loading branch information
openshift-merge-robot authored Apr 3, 2020
2 parents b74e391 + 6ec1d00 commit 1d69bee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/asset/installconfig/ovirt/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ func (c *Config) Save() error {
}

path := discoverPath()
err = os.MkdirAll(filepath.Dir(path), os.FileMode(700))
err = os.MkdirAll(filepath.Dir(path), 0700)
if err != nil {
return err
}
return ioutil.WriteFile(path, out, os.FileMode(0600))
return ioutil.WriteFile(path, out, 0600)
}

0 comments on commit 1d69bee

Please sign in to comment.