Skip to content

Commit a19844f

Browse files
committed
fix #163
1 parent ac98046 commit a19844f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

pkg/constants/constants.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@
1818
// Package constants defines some global constants
1919
package constants
2020

21+
import "os"
22+
23+
var (
24+
rocketmqHome = os.Getenv("ROCKETMQ_HOME")
25+
26+
// AdminToolDir is the RocketMQ Admin directory in operator image
27+
AdminToolDir = rocketmqHome + "/bin/mqadmin"
28+
)
29+
2130
const (
2231
// TODO: get paths by container ENV or actual value instead of fixed constant
2332
DataPath = "/root"
@@ -28,9 +37,6 @@ const (
2837
// BasicCommand is basic command of exec function
2938
BasicCommand = "sh"
3039

31-
// AdminToolDir is the RocketMQ Admin directory in operator image
32-
AdminToolDir = "/home/rocketmq/operator/bin/mqadmin"
33-
3440
// StoreConfigDir is the directory of config file
3541
StoreConfigDir = DataPath + "/store/config"
3642

0 commit comments

Comments
 (0)