Set log folder variable to /var/log/3x-ui (#3599)

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

* Set log folder as x-ui and create the log folder

* Create the log folder in install and update scripts
This commit is contained in:
Nebulosa
2026-01-02 18:11:32 +03:00
committed by GitHub
parent 260eedf8c4
commit c061337ce7
4 changed files with 5 additions and 2 deletions

View File

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