🚀 Some improvements for x-ui.sh and ip job (#665)

This commit is contained in:
Hamidreza authored and GitHub committed 2023-07-01 15:56:43 +03:30
1 parent f726474a5d
commit 1028319386
17 files changed
+428 -294

No files matched your search

+8
View File
@@ -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
}