Skip to content
Snippets Groups Projects

Resolve "Fix "Config file not found and was unable to create" on new gosdn repo environment"

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -115,7 +115,7 @@ func initConfig() {
}
// Config file not found
// Try to create empty config file
if err = os.WriteFile(fmt.Sprintf("%s%s", defaultPath, configFileName), []byte(""), 0700); err != nil {
if err = os.WriteFile(fmt.Sprintf("%s%s", defaultPath, configFileName), []byte(""), 0600); err != nil {
log.Error("Config file not found and was unable to create, error: ", err)
}
} else {
Loading