We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb11858 commit bed5c86Copy full SHA for bed5c86
scouterx/conf/configure.go
@@ -140,10 +140,18 @@ func (conf *Configure) run() {
140
}
141
142
func getConfFilePath() string {
143
- path := util.GetScouterPath()
144
- confPath := filepath.Join(path, "conf")
145
- util.MakeDir(confPath)
146
- return filepath.Join(path, "conf", "scouter.conf")
+ scouterConfFile := os.Getenv("SCOUTER_CONFIG")
+ if scouterConfFile == "" {
+ scouterConfFile = os.Getenv("scouter.config")
+ }
147
148
+ path := util.GetScouterPath()
149
+ confPath := filepath.Join(path, "conf")
150
+ util.MakeDir(confPath)
151
+ scouterConfFile = filepath.Join(path, "conf", "scouter.conf")
152
153
+
154
+ return scouterConfFile
155
156
157
func (conf *Configure) SetTrace(mode bool) {
0 commit comments