Commit 6f033dd7 authored by Peter Borzov's avatar Peter Borzov Committed by Juan Batiz-Benet

Initialize Updates.check config setting

parent ecd6f3b0
...@@ -135,6 +135,10 @@ func initCmd(c *commander.Command, inp []string) error { ...@@ -135,6 +135,10 @@ func initCmd(c *commander.Command, inp []string) error {
}, },
} }
cfg.Updates = config.Updates{
Check: "error",
}
err = config.WriteConfigFile(filename, cfg) err = config.WriteConfigFile(filename, cfg)
if err != nil { if err != nil {
return err return err
......
...@@ -24,6 +24,7 @@ var CmdIpfs = &commander.Command{ ...@@ -24,6 +24,7 @@ var CmdIpfs = &commander.Command{
Basic commands: Basic commands:
init Initialize ipfs local configuration.
add <path> Add an object to ipfs. add <path> Add an object to ipfs.
cat <ref> Show ipfs object data. cat <ref> Show ipfs object data.
ls <ref> List links from an object. ls <ref> List links from an object.
......
...@@ -47,7 +47,7 @@ func (bp *BootstrapPeer) String() string { ...@@ -47,7 +47,7 @@ func (bp *BootstrapPeer) String() string {
// Updates regulates checking and downloading for application's most recent version // Updates regulates checking and downloading for application's most recent version
type Updates struct { 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. // Config is used to load IPFS config files.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment