feat(installer): default -install to y

Running without parameters previously skipped package install and
failed at certbot on a clean server. Packages now install by default;
use -install n to skip.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Ivan Razin
2026-07-17 08:45:56 +03:00
co-authored by Claude Fable 5
parent 53c1ea88d4
commit eaf1a53d2a
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ effect on servers only after push to `main`.
## What x-ui-latest.sh does
1. Checks OS (Ubuntu 24.04/26.04, Debian 12/13) and rejects QEMU-emulated CPUs
2. Parses CLI arguments (`-install y`, `-subdomain`, `-reality_domain`, `-auto_domain y`, `-version <ver>`, `-uninstall y`)
2. Parses CLI arguments (`-install n` to skip package install — default `y`, `-subdomain`, `-reality_domain`, `-auto_domain y`, `-version <ver>`, `-uninstall y`)
3. Validates domains (panel ≠ REALITY), then stops/cleans any previous install
4. Installs packages (`install_packages`) — nginx-full, certbot, sqlite3, ufw, mtr, python3 …
5. Obtains Let's Encrypt certs via certbot standalone (`get_ssl_certs`) — panel + reality domains
@@ -83,7 +83,7 @@ IP = `api/st/getip`. Speedtest locations use `limit_conn`, not `limit_req`
```bash
bash <(curl -fsSL https://raw.githubusercontent.com/mozaroc/3x-ui-pro/main/x-ui-latest.sh) \
-install y -subdomain panel.example.com -reality_domain r.example.com
-subdomain panel.example.com -reality_domain r.example.com
```
Patch an existing install (re-reads ports/paths from x-ui.db and nginx):
+2 -2
View File
@@ -37,7 +37,7 @@ wget -qO x-ui-latest.sh https://raw.githubusercontent.com/mozaroc/3x-ui-pro/main
**Шаг 2 — запустить**
```bash
bash x-ui-latest.sh -install y
bash x-ui-latest.sh
```
---
@@ -84,7 +84,7 @@ bash x-ui-latest.sh -uninstall y
| Параметр | Описание |
|----------|----------|
| `-install y` | Установить |
| `-install n` | Пропустить установку системных пакетов (по умолчанию `y`) |
| `-subdomain <домен>` | Домен панели и подписок |
| `-reality_domain <домен>` | Домен назначения для REALITY |
| `-auto_domain y` | Автоопределение домена (без ручного ввода) |
+1 -1
View File
@@ -58,7 +58,7 @@ FAKE_SITE_COUNT=50
domain=""
reality_domain=""
UNINSTALL="x"
INSTALL="n"
INSTALL="y"
AUTODOMAIN="n"
CFALLOW="n"