author | Alberto Bertogli
<albertito@blitiri.com.ar> 2016-11-22 20:25:30 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2016-11-22 20:25:30 UTC |
parent | 279fff3cf8290cdd4b2dbcbd379b4b7d8b7d9489 |
cmd/chasquid-util/chasquid-util.go | +2 | -0 |
diff --git a/cmd/chasquid-util/chasquid-util.go b/cmd/chasquid-util/chasquid-util.go index 9ec05e4..43282cb 100644 --- a/cmd/chasquid-util/chasquid-util.go +++ b/cmd/chasquid-util/chasquid-util.go @@ -5,6 +5,7 @@ import ( "fmt" "io/ioutil" "os" + "path/filepath" "syscall" "bytes" @@ -86,6 +87,7 @@ func userDBFromArgs(create bool) (string, string, *userdb.DB) { if err != nil { if create && os.IsNotExist(err) { fmt.Println("Creating database") + os.MkdirAll(filepath.Dir(userDBForDomain(domain)), 0755) } else { Fatalf("Error loading database: %v", err) }