File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 18
18
// Package constants defines some global constants
19
19
package constants
20
20
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
+
21
30
const (
22
31
// TODO: get paths by container ENV or actual value instead of fixed constant
23
32
DataPath = "/root"
@@ -28,9 +37,6 @@ const (
28
37
// BasicCommand is basic command of exec function
29
38
BasicCommand = "sh"
30
39
31
- // AdminToolDir is the RocketMQ Admin directory in operator image
32
- AdminToolDir = "/home/rocketmq/operator/bin/mqadmin"
33
-
34
40
// StoreConfigDir is the directory of config file
35
41
StoreConfigDir = DataPath + "/store/config"
36
42
You can’t perform that action at this time.
0 commit comments