Skip to content
Snippets Groups Projects
Commit de58c469 authored by Katharina Renk's avatar Katharina Renk
Browse files

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

See merge request !730
parent e263d51a
No related branches found
No related tags found
1 merge request!730Resolve "Fix "Config file not found and was unable to create" on new gosdn repo environment"
Pipeline #183149 failed
...@@ -110,7 +110,7 @@ func initConfig() { ...@@ -110,7 +110,7 @@ func initConfig() {
if err := viper.ReadInConfig(); err != nil { if err := viper.ReadInConfig(); err != nil {
if ok := errors.As(err, &viper.ConfigFileNotFoundError{}); ok { if ok := errors.As(err, &viper.ConfigFileNotFoundError{}); ok {
// create folder if it does not exist // create folder if it does not exist
if err := os.MkdirAll(defaultPath, 0600); err != nil { if err := os.MkdirAll(defaultPath, 0700); err != nil {
log.Error("Config directory not found and was unable to create, error: ", err) log.Error("Config directory not found and was unable to create, error: ", err)
} }
// Config file not found // Config file not found
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment