mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 23:00:58 +00:00
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:
parent
f2f051d6de
commit
bc885f1d08
@ -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{
|
||||||
|
Loading…
Reference in New Issue
Block a user