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:
co-authored by
Claude Fable 5
parent
53c1ea88d4
commit
eaf1a53d2a
@@ -27,7 +27,7 @@ effect on servers only after push to `main`.
|
|||||||
## What x-ui-latest.sh does
|
## What x-ui-latest.sh does
|
||||||
|
|
||||||
1. Checks OS (Ubuntu 24.04/26.04, Debian 12/13) and rejects QEMU-emulated CPUs
|
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
|
3. Validates domains (panel ≠ REALITY), then stops/cleans any previous install
|
||||||
4. Installs packages (`install_packages`) — nginx-full, certbot, sqlite3, ufw, mtr, python3 …
|
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
|
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
|
||||||
bash <(curl -fsSL https://raw.githubusercontent.com/mozaroc/3x-ui-pro/main/x-ui-latest.sh) \
|
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):
|
Patch an existing install (re-reads ports/paths from x-ui.db and nginx):
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ wget -qO x-ui-latest.sh https://raw.githubusercontent.com/mozaroc/3x-ui-pro/main
|
|||||||
**Шаг 2 — запустить**
|
**Шаг 2 — запустить**
|
||||||
|
|
||||||
```bash
|
```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 <домен>` | Домен панели и подписок |
|
| `-subdomain <домен>` | Домен панели и подписок |
|
||||||
| `-reality_domain <домен>` | Домен назначения для REALITY |
|
| `-reality_domain <домен>` | Домен назначения для REALITY |
|
||||||
| `-auto_domain y` | Автоопределение домена (без ручного ввода) |
|
| `-auto_domain y` | Автоопределение домена (без ручного ввода) |
|
||||||
|
|||||||
+1
-1
@@ -58,7 +58,7 @@ FAKE_SITE_COUNT=50
|
|||||||
domain=""
|
domain=""
|
||||||
reality_domain=""
|
reality_domain=""
|
||||||
UNINSTALL="x"
|
UNINSTALL="x"
|
||||||
INSTALL="n"
|
INSTALL="y"
|
||||||
AUTODOMAIN="n"
|
AUTODOMAIN="n"
|
||||||
CFALLOW="n"
|
CFALLOW="n"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user