Fix random bugs related to using garage cli tools
This commit is contained in:
parent
c4b7abbcc4
commit
838c548706
@ -78,6 +78,6 @@ storage:
|
||||
#- data_path: /foo/bar/data
|
||||
# meta_path: /foo/bar/meta
|
||||
# capacity: 1200
|
||||
# #s3_api_port: 3900
|
||||
# #rpc_port: 3901
|
||||
# #rpc_port: 3900
|
||||
# #s3_api_port: 3901
|
||||
# #admin_port: 3902
|
||||
|
@ -3,6 +3,7 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
@ -55,7 +56,7 @@ var subCmdGarageMC = subCmd{
|
||||
args = append([]string{"mc"}, args...)
|
||||
|
||||
var (
|
||||
binPath = "mc"
|
||||
binPath = filepath.Join(envAppDirPath, "bin/mc")
|
||||
cliEnv = append(
|
||||
os.Environ(),
|
||||
fmt.Sprintf(
|
||||
@ -92,11 +93,11 @@ var subCmdGarageCLI = subCmd{
|
||||
}
|
||||
|
||||
var (
|
||||
binPath = "garage"
|
||||
binPath = filepath.Join(envAppDirPath, "bin/garage")
|
||||
args = append([]string{"garage"}, subCmdCtx.args...)
|
||||
cliEnv = append(
|
||||
os.Environ(),
|
||||
"GARAGE_RPC_HOST="+hostBootstrap.ChooseGaragePeer().RPCAddr(),
|
||||
"GARAGE_RPC_HOST="+hostBootstrap.ChooseGaragePeer().RPCPeerAddr(),
|
||||
"GARAGE_RPC_SECRET="+hostBootstrap.Garage.RPCSecret,
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user