Initialize Updates.check config setting

This commit is contained in:
Peter Borzov 2014-10-06 16:08:01 -04:00 committed by Juan Batiz-Benet
parent ecd6f3b00c
commit 6f033dd7a1
4 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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.

View File

@ -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.

View File