🚀 Some improvements for x-ui.sh and ip job (#665)
This commit is contained in:
1 parent
f726474a5d
commit
1028319386
17 files changed
+428
-294
No files matched your search
@@ -65,3 +65,11 @@ func GetDBFolderPath() string {
|
||||
func GetDBPath() string {
|
||||
return fmt.Sprintf("%s/%s.db", GetDBFolderPath(), GetName())
|
||||
}
|
||||
|
||||
func GetLogFolder() string {
|
||||
logFolderPath := os.Getenv("XUI_LOG_FOLDER")
|
||||
if logFolderPath == "" {
|
||||
logFolderPath = "/var/log"
|
||||
}
|
||||
return logFolderPath
|
||||
}
|
||||
Reference in new issue
Block a user