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

@@ -653,6 +653,7 @@ update_x-ui() {
chmod +x /usr/local/x-ui/x-ui.sh >/dev/null 2>&1
chmod +x /usr/bin/x-ui >/dev/null 2>&1
mkdir -p /var/log/x-ui >/dev/null 2>&1
echo -e "${green}Changing owner...${plain}"
chown -R root:root /usr/local/x-ui >/dev/null 2>&1