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

changed permissions for toml file

parent 68efddb5
Branches fix-docker-registry-error
Tags
1 merge request!730Resolve "Fix "Config file not found and was unable to create" on new gosdn repo environment"
Pipeline #182603 passed
This commit is part of merge request !730. Comments created here will be created in the context of that merge request.
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment