Merge pull request 'serverConfig mkdirall' (#21) from fixMacMake into trunk

Reviewed-on: #21
This commit is contained in:
Sarah Jamie Lewis 2021-11-05 20:02:44 +00:00
commit 4ae47d9253
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ func LoadCreateDefaultConfigFile(configDir, filename string, encrypted bool, pas
// if the encrypted flag is true the config is store encrypted by password // if the encrypted flag is true the config is store encrypted by password
func CreateConfig(configDir, filename string, encrypted bool, password string) (*Config, error) { func CreateConfig(configDir, filename string, encrypted bool, password string) (*Config, error) {
log.Debugf("CreateConfig for server with configDir: %s\n", configDir) log.Debugf("CreateConfig for server with configDir: %s\n", configDir)
os.Mkdir(configDir, 0700) os.MkdirAll(configDir, 0700)
config := initDefaultConfig(configDir, filename, encrypted) config := initDefaultConfig(configDir, filename, encrypted)
if encrypted { if encrypted {
key, _, err := v1.InitV1Directory(configDir, password) key, _, err := v1.InitV1Directory(configDir, password)