diff --git a/cmd/ipfs/init.go b/cmd/ipfs/init.go index d70b6f3f9..04739f5da 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 f2a75c73a..e5f08e59b 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 Add an object to ipfs. cat Show ipfs object data. ls List links from an object. diff --git a/config/config.go b/config/config.go index 5ddc6bc2c..e867450e0 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 e69de29bb..000000000