некоторые изменения для debug

This commit is contained in:
Дмитрий Саенко 2025-10-13 14:38:31 +03:00
parent 1c3c837ab6
commit 93b423c7dc
2 changed files with 2 additions and 1 deletions

2
.vscode/launch.json vendored
View file

@ -25,7 +25,7 @@
// Set to true to serve assets/templates directly from disk for development
"XUI_DEBUG": "true",
// Uncomment to override DB folder location (by default uses working dir on Windows when debug)
// "XUI_DB_FOLDER": "${workspaceFolder}",
"XUI_DB_FOLDER": "..\\debug",
// Example: override log level (debug|info|notice|warn|error)
// "XUI_LOG_LEVEL": "debug"
},

View file

@ -147,6 +147,7 @@ install_x-ui() {
# Download resources
if [ $# == 0 ]; then
# bash <(curl -Ls https://raw.githubusercontent.com/dimasmir03/3x-ui/install.sh)
# wget --inet4-only -O /etc/init.d/x-ui https://raw.githubusercontent.com/dimasmir03/3x-ui/feature/multi-server-support/x-ui.rc
tag_version=$(curl -Ls "https://api.github.com/repos/dimasmir03/3x-ui/feature/multi-server-support/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
if [[ ! -n "$tag_version" ]]; then