mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(backend): made public_gen detection more bullet proof, #2731
This commit is contained in:
@@ -363,10 +363,6 @@ func validateStaticRootPath() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, err := os.Stat(path.Join(StaticRootPath, "css")); err == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
if _, err := os.Stat(StaticRootPath + "_gen/css"); err == nil {
|
if _, err := os.Stat(StaticRootPath + "_gen/css"); err == nil {
|
||||||
StaticRootPath = StaticRootPath + "_gen"
|
StaticRootPath = StaticRootPath + "_gen"
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user