Browse Source

restore: create data directory before restoring data files (#4413)

pull/4126/merge
Unknwon 8 years ago
parent
commit
1af01f5e30
No known key found for this signature in database
GPG Key ID: 7A02C406FAC875A2
  1. 1
      cmd/restore.go

1
cmd/restore.go

@ -101,6 +101,7 @@ func runRestore(c *cli.Context) error {
// Data files
if !c.Bool("database-only") {
os.MkdirAll(setting.AppDataPath, os.ModePerm)
for _, dir := range []string{"attachments", "avatars"} {
dirPath := path.Join(setting.AppDataPath, dir)
if com.IsExist(dirPath) {

Loading…
Cancel
Save