Skip to content

Commit

Permalink
do not suggest the default layer
Browse files Browse the repository at this point in the history
  • Loading branch information
snadrus committed Dec 5, 2023
1 parent 2d75cc5 commit 91b0032
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/lotus-provider/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,17 @@ func fromMiner(cctx *cli.Context) (err error) {
dbSettings += ` --db-name="` + smCfg.HarmonyDB.Database + `"`
}

var layerMaybe string
if name != "base" {
layerMaybe = "--layer=" + name
}

msg += `
To work with the config:
` + cliCommandColor(`lotus-provider `+dbSettings+` config help `)
msg += `
To run Lotus Provider: in its own machine or cgroup without other files, use the command:
` + cliCommandColor(`lotus-provider `+dbSettings+` run --layers="`+name+`"`)
` + cliCommandColor(`lotus-provider `+dbSettings+` run `+layerMaybe)
fmt.Println(msg)
return nil
}

0 comments on commit 91b0032

Please sign in to comment.