diff --git a/cmd/ipfs/init.go b/cmd/ipfs/init.go index d70b6f3f9f98d16694c120dfbdf6a4d8da891d46..04739f5dae52347b7f8dadc368cf8f36737a1bd9 100644 --- a/cmd/ipfs/init.go +++ b/cmd/ipfs/init.go @@ -135,6 +135,10 @@ func initCmd(c *commander.Command, inp []string) error { }, } + cfg.Updates = config.Updates{ + Check: "error", + } + err = config.WriteConfigFile(filename, cfg) if err != nil { return err diff --git a/cmd/ipfs/ipfs.go b/cmd/ipfs/ipfs.go index f2a75c73a6ead18b811e850ee42a0f73473fa945..e5f08e59b5cd45fb6ad900511a6df6a8f90d76ee 100644 --- a/cmd/ipfs/ipfs.go +++ b/cmd/ipfs/ipfs.go @@ -24,6 +24,7 @@ var CmdIpfs = &commander.Command{ Basic commands: + init Initialize ipfs local configuration. add <path> Add an object to ipfs. cat <ref> Show ipfs object data. ls <ref> List links from an object. diff --git a/config/config.go b/config/config.go index 5ddc6bc2c56f1f516b159f74641d672fc7dc96d5..e867450e0196f417f5474a0a46a74c3b9aa665c2 100644 --- a/config/config.go +++ b/config/config.go @@ -47,7 +47,7 @@ func (bp *BootstrapPeer) String() string { // Updates regulates checking and downloading for application's most recent version type Updates struct { - Check string // "ignore" for do not check, "warn" and "error" for reacting when obsolete + Check string `json:"check"` // "ignore" for do not check, "warn" and "error" for reacting when obsolete } // Config is used to load IPFS config files. diff --git a/cpu.prof b/cpu.prof deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000