lotus-provider: Somewhat less broken from-miner
This commit is contained in:
parent
87443124e6
commit
7efc4e4bf6
@ -35,6 +35,12 @@ var configMigrateCmd = &cli.Command{
|
|||||||
Value: "~/.lotusminer",
|
Value: "~/.lotusminer",
|
||||||
Usage: fmt.Sprintf("Specify miner repo path. flag(%s) and env(LOTUS_STORAGE_PATH) are DEPRECATION, will REMOVE SOON", FlagMinerRepoDeprecation),
|
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{
|
&cli.StringFlag{
|
||||||
Name: "to-layer",
|
Name: "to-layer",
|
||||||
Aliases: []string{"t"},
|
Aliases: []string{"t"},
|
||||||
@ -169,7 +175,7 @@ environment variable LOTUS_WORKER_WINDOWPOST.
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !lo.Contains(titles, "base") {
|
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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user