Skip to content

Commit

Permalink
Merge pull request #11486 from filecoin-project/lpMigrateNicer
Browse files Browse the repository at this point in the history
do not suggest the default layer
  • Loading branch information
magik6k authored and rjan90 committed Dec 11, 2023
1 parent 753b51d commit 970ce52
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 970ce52

Please sign in to comment.