Skip to content

Commit

Permalink
Merge pull request #95 from BrenekH/develop
Browse files Browse the repository at this point in the history
More permissive permission octals
  • Loading branch information
BrenekH authored Jul 24, 2021
2 parents 69fceb1 + fd1e514 commit 1f054ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controller/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func SaveSettings(s Settings) error {
return err
}

err = os.WriteFile(fmt.Sprintf("%v/settings.json", options.ConfigDir()), b, 0664)
err = os.WriteFile(fmt.Sprintf("%v/settings.json", options.ConfigDir()), b, 0666)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion controller/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func ConfigDir() string {

// makeConfigDir creates the options.configDir
func makeConfigDir() {
err := os.MkdirAll(configDir, 0644)
err := os.MkdirAll(configDir, 0777)
if err != nil {
fmt.Println(err)
logger.Critical(fmt.Sprintf("Failed to create config directory '%v' because of error: %v", configDir, err.Error()))
Expand Down

0 comments on commit 1f054ed

Please sign in to comment.