diff --git a/cmd/lotus-provider/migrate.go b/cmd/lotus-provider/migrate.go index 7d250c4e5..3b2ea440d 100644 --- a/cmd/lotus-provider/migrate.go +++ b/cmd/lotus-provider/migrate.go @@ -35,6 +35,12 @@ var configMigrateCmd = &cli.Command{ Value: "~/.lotusminer", Usage: fmt.Sprintf("Specify miner repo path. flag(%s) and env(LOTUS_STORAGE_PATH) are DEPRECATION, will REMOVE SOON", FlagMinerRepoDeprecation), }, + &cli.StringFlag{ + Name: "repo", + EnvVars: []string{"LOTUS_PATH"}, + Hidden: true, + Value: "~/.lotus", + }, &cli.StringFlag{ Name: "to-layer", Aliases: []string{"t"}, @@ -169,7 +175,7 @@ environment variable LOTUS_WORKER_WINDOWPOST. } if !lo.Contains(titles, "base") { - _, err = db.Exec(ctx, "INSERT INTO harmony_config (title, config) VALUES ('base', '')", "base") + _, err = db.Exec(ctx, "INSERT INTO harmony_config (title, config) VALUES ('base', '')") if err != nil { return err }