Don't attempt to create default repo before config (fixes #530)

We'll create it anyway a little later during startup, as part of the
general "check all repos for viability" step.
This commit is contained in:
Jakob Borg 2014-08-16 22:22:31 +02:00
parent f2f051d6de
commit bc885f1d08

View File

@ -289,7 +289,6 @@ func main() {
l.Infoln("No config file; starting with empty defaults") l.Infoln("No config file; starting with empty defaults")
name, _ := os.Hostname() name, _ := os.Hostname()
defaultRepo := filepath.Join(getHomeDir(), "Sync") defaultRepo := filepath.Join(getHomeDir(), "Sync")
ensureDir(defaultRepo, 0755)
cfg, err = config.Load(nil, myID) cfg, err = config.Load(nil, myID)
cfg.Repositories = []config.RepositoryConfiguration{ cfg.Repositories = []config.RepositoryConfiguration{