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 5d2084f commit 1864efcCopy full SHA for 1864efc
agent/init/db/db.go
@@ -1,6 +1,7 @@
1
package db
2
3
import (
4
+ "os"
5
"path"
6
7
"github.com/1Panel-dev/1Panel/agent/global"
@@ -14,7 +15,7 @@ func Init() {
14
15
global.GPUMonitorDB = common.LoadDBConnByPath(path.Join(global.Dir.DbDir, "gpu_monitor.db"), "gpu_monitor")
16
global.AlertDB = common.LoadDBConnByPath(path.Join(global.Dir.DbDir, "alert.db"), "alert")
17
- if global.IsMaster {
18
+ if _, err := os.Stat("/usr/bin/1panel-core"); err == nil {
19
global.CoreDB = common.LoadDBConnByPath(path.Join(global.Dir.DbDir, "core.db"), "core")
20
}
21
0 commit comments