2022-10-12 18:57:22 +08:00
|
|
|
package constant
|
|
|
|
|
|
|
|
import (
|
|
|
|
"path"
|
2023-01-29 16:38:34 +08:00
|
|
|
|
|
|
|
"github.com/1Panel-dev/1Panel/backend/global"
|
2022-10-12 18:57:22 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2023-05-16 17:31:47 +08:00
|
|
|
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")
|
2022-12-28 18:35:53 +08:00
|
|
|
)
|