forked from cwtch.im/server
serverConfig mkdirall
This commit is contained in:
parent
8ca01d15c3
commit
6788d7c415
|
@ -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
|
||||
func CreateConfig(configDir, filename string, encrypted bool, password string) (*Config, error) {
|
||||
log.Debugf("CreateConfig for server with configDir: %s\n", configDir)
|
||||
os.Mkdir(configDir, 0700)
|
||||
os.MkdirAll(configDir, 0700)
|
||||
config := initDefaultConfig(configDir, filename, encrypted)
|
||||
if encrypted {
|
||||
key, _, err := v1.InitV1Directory(configDir, password)
|
||||
|
|
Loading…
Reference in New Issue