Set log folder variable to /var/log/3x-ui

This commit is contained in:
Nebulosa 2025-12-05 14:42:13 +03:00
parent 0ea8b5352a
commit 742d901a61
2 changed files with 2 additions and 2 deletions

View file

@ -109,7 +109,7 @@ func GetLogFolder() string {
if runtime.GOOS == "windows" { if runtime.GOOS == "windows" {
return filepath.Join(".", "log") return filepath.Join(".", "log")
} }
return "/var/log" return "/var/log/3x-ui"
} }
func copyFile(src, dst string) error { func copyFile(src, dst string) error {

View file

@ -39,7 +39,7 @@ os_version=""
os_version=$(grep "^VERSION_ID" /etc/os-release | cut -d '=' -f2 | tr -d '"' | tr -d '.') os_version=$(grep "^VERSION_ID" /etc/os-release | cut -d '=' -f2 | tr -d '"' | tr -d '.')
# Declare Variables # Declare Variables
log_folder="${XUI_LOG_FOLDER:=/var/log}" log_folder="${XUI_LOG_FOLDER:=/var/log/3x-ui}"
iplimit_log_path="${log_folder}/3xipl.log" iplimit_log_path="${log_folder}/3xipl.log"
iplimit_banned_log_path="${log_folder}/3xipl-banned.log" iplimit_banned_log_path="${log_folder}/3xipl-banned.log"