mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-16 01:38:59 +08:00
743e7d0b59
Refs https://github.com/1Panel-dev/1Panel/issues/1137 Refs https://github.com/1Panel-dev/1Panel/issues/624
20 lines
578 B
Go
20 lines
578 B
Go
package constant
|
|
|
|
import (
|
|
"path"
|
|
|
|
"github.com/1Panel-dev/1Panel/backend/global"
|
|
)
|
|
|
|
var (
|
|
DataDir = global.CONF.System.DataDir
|
|
ResourceDir = path.Join(DataDir, "resource")
|
|
AppResourceDir = path.Join(ResourceDir, "apps")
|
|
AppInstallDir = path.Join(DataDir, "apps")
|
|
LocalAppResourceDir = path.Join(AppResourceDir, "local")
|
|
LocalAppInstallDir = path.Join(AppInstallDir, "local")
|
|
RemoteAppResourceDir = path.Join(AppResourceDir, "remote")
|
|
RuntimeDir = path.Join(DataDir, "runtime")
|
|
RecycleBinDir = "/.1panel_clash"
|
|
)
|