File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ would otherwise be a time consuming manual task. It also wraps docker compose
6262commands to manage the lifecycle of stacks.
6363
6464To get started run: ff init
65+ Optional: Set FIREFLY_HOME env variable for FireFly stack configuration path.
6566 ` ,
6667 PersistentPreRun : func (cmd * cobra.Command , args []string ) {
6768 if ansi == "always" {
Original file line number Diff line number Diff line change @@ -21,11 +21,17 @@ import (
2121 "path/filepath"
2222)
2323
24- var homeDir , _ = os .UserHomeDir ()
25- var StacksDir = filepath .Join (homeDir , ".firefly" , "stacks" )
26-
24+ var StacksDir = checkHome ()
2725var FireFlyCoreImageName = "ghcr.io/hyperledger/firefly"
2826var IPFSImageName = "ipfs/go-ipfs:v0.10.0"
2927var PostgresImageName = "postgres"
3028var PrometheusImageName = "prom/prometheus"
3129var SandboxImageName = "ghcr.io/hyperledger/firefly-sandbox:latest"
30+
31+ func checkHome () string {
32+ var homeDir , _ = os .UserHomeDir ()
33+ var StacksDir = filepath .Join (homeDir , ".firefly" , "stacks" )
34+ var fireflyhome , present = os .LookupEnv ("FIREFLY_HOME" )
35+ if present { StacksDir = filepath .Join (fireflyhome , "stacks" ) }
36+ return StacksDir
37+ }
You can’t perform that action at this time.
0 commit comments