mirror of https://github.com/grafana/grafana.git
cli: fix for recognizing when in dev mode. (#18334)
This commit is contained in:
parent
9b5890cc62
commit
c675449aa2
|
|
@ -45,12 +45,13 @@ func tryGetRootForDevEnvironment() (string, bool) {
|
|||
return "", false
|
||||
}
|
||||
|
||||
defaultsPath := filepath.Join(rootPath, "conf/defaults.ini")
|
||||
devenvPath := filepath.Join(rootPath, "devenv")
|
||||
|
||||
_, err = os.Stat(defaultsPath)
|
||||
_, err = os.Stat(devenvPath)
|
||||
if err != nil {
|
||||
return "", false
|
||||
}
|
||||
|
||||
return rootPath, true
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue