Bust raw cache for VPS installer
This commit is contained in:
1 parent
806c35df36
commit
c1307b7cc7
2 files changed
+22
-10
No files matched your search
@@ -79,9 +79,9 @@ flowchart LR
|
|||||||
|
|
||||||
| Задача | Где запускать | Команда |
|
| Задача | Где запускать | Команда |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
| Поставить Hub | VPS | `curl -fsSL https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/install-vps.sh \| sudo sh` |
|
| Поставить Hub | VPS | `curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/install-vps.sh?v=$(date +%s)" \| sudo sh` |
|
||||||
| Поставить агент | OpenWrt | `wget -O - "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/install.sh?v=$(date +%s)" \| sh` |
|
| Поставить агент | OpenWrt | `wget -O - "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/install.sh?v=$(date +%s)" \| sh` |
|
||||||
| Удалить Hub полностью | VPS | `curl -fsSL https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/uninstall-vps.sh \| sudo sh` |
|
| Удалить Hub полностью | VPS | `curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/uninstall-vps.sh?v=$(date +%s)" \| sudo sh` |
|
||||||
| Удалить агент полностью | OpenWrt | `wget -O - "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/uninstall.sh?v=$(date +%s)" \| PURGE=1 sh` |
|
| Удалить агент полностью | OpenWrt | `wget -O - "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/uninstall.sh?v=$(date +%s)" \| PURGE=1 sh` |
|
||||||
|
|
||||||
## Быстрая установка VPS
|
## Быстрая установка VPS
|
||||||
@@ -91,7 +91,7 @@ flowchart LR
|
|||||||
Самый простой вариант - одна команда. Она поставит зависимости, скачает Hub, запустит сервис, откроет порты в `ufw` и в конце покажет ссылку панели и вход `admin/admin`.
|
Самый простой вариант - одна команда. Она поставит зависимости, скачает Hub, запустит сервис, откроет порты в `ufw` и в конце покажет ссылку панели и вход `admin/admin`.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -fsSL https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/install-vps.sh | sudo sh
|
curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/install-vps.sh?v=$(date +%s)" | sudo sh
|
||||||
```
|
```
|
||||||
|
|
||||||
После успешной установки в конце будет примерно так:
|
После успешной установки в конце будет примерно так:
|
||||||
@@ -108,10 +108,19 @@ OpenWrt Remote Hub установлен
|
|||||||
password: admin
|
password: admin
|
||||||
```
|
```
|
||||||
|
|
||||||
|
В свежем установщике в начале вывода должно быть:
|
||||||
|
|
||||||
|
```text
|
||||||
|
Installer: 2026-06-30-health-wait-v2
|
||||||
|
Жду запуск Hub...
|
||||||
|
```
|
||||||
|
|
||||||
|
Если этих строк нет, значит GitHub raw/CDN отдал старый кеш. Запусти команду установки именно с `?v=$(date +%s)`, как в примере выше.
|
||||||
|
|
||||||
Если хочешь явно указать IP или домен:
|
Если хочешь явно указать IP или домен:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -fsSL https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/install-vps.sh | sudo sh -s -- YOUR_VPS_IP
|
curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/install-vps.sh?v=$(date +%s)" | sudo sh -s -- YOUR_VPS_IP
|
||||||
```
|
```
|
||||||
|
|
||||||
Если ставишь повторно и хочешь снова сбросить вход на `admin/admin`, ничего дополнительно делать не надо: установщик по умолчанию выставляет `admin/admin`.
|
Если ставишь повторно и хочешь снова сбросить вход на `admin/admin`, ничего дополнительно делать не надо: установщик по умолчанию выставляет `admin/admin`.
|
||||||
@@ -119,7 +128,7 @@ curl -fsSL https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/m
|
|||||||
Если не хочешь сбрасывать текущий пароль:
|
Если не хочешь сбрасывать текущий пароль:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -fsSL https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/install-vps.sh | sudo env RESET_LOGIN=0 sh
|
curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/install-vps.sh?v=$(date +%s)" | sudo env RESET_LOGIN=0 sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Ручная установка, если нужна:
|
Ручная установка, если нужна:
|
||||||
@@ -471,7 +480,7 @@ http://YOUR_VPS_IP:8088/
|
|||||||
Одна команда на VPS:
|
Одна команда на VPS:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -fsSL https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/uninstall-vps.sh | sudo sh
|
curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/uninstall-vps.sh?v=$(date +%s)" | sudo sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Что удалится:
|
Что удалится:
|
||||||
@@ -486,13 +495,13 @@ curl -fsSL https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/m
|
|||||||
Если хочешь удалить Hub, но оставить базу роутеров:
|
Если хочешь удалить Hub, но оставить базу роутеров:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -fsSL https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/uninstall-vps.sh | sudo env PURGE=0 sh
|
curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/uninstall-vps.sh?v=$(date +%s)" | sudo env PURGE=0 sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Если хочешь дополнительно удалить сам Xray binary с VPS:
|
Если хочешь дополнительно удалить сам Xray binary с VPS:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -fsSL https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/uninstall-vps.sh | sudo env REMOVE_XRAY=1 sh
|
curl -fsSL "https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main/vps/uninstall-vps.sh?v=$(date +%s)" | sudo env REMOVE_XRAY=1 sh
|
||||||
```
|
```
|
||||||
|
|
||||||
### Удалить агент с OpenWrt полностью
|
### Удалить агент с OpenWrt полностью
|
||||||
|
|||||||
+5
-2
@@ -2,6 +2,7 @@
|
|||||||
set -u
|
set -u
|
||||||
|
|
||||||
APP_NAME="OpenWrt Remote Hub"
|
APP_NAME="OpenWrt Remote Hub"
|
||||||
|
INSTALLER_VERSION="2026-06-30-health-wait-v2"
|
||||||
RAW_BASE="${RAW_URL:-https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main}"
|
RAW_BASE="${RAW_URL:-https://raw.githubusercontent.com/kzolotarev95/luci-app-owrt-remote/main}"
|
||||||
STATE_DIR="${OWRT_REMOTE_STATE_DIR:-/var/lib/owrt-remote}"
|
STATE_DIR="${OWRT_REMOTE_STATE_DIR:-/var/lib/owrt-remote}"
|
||||||
HUB_LOGIN="${HUB_LOGIN:-admin}"
|
HUB_LOGIN="${HUB_LOGIN:-admin}"
|
||||||
@@ -70,9 +71,10 @@ install_xray_binary() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
install_files() {
|
install_files() {
|
||||||
|
cache_bust="$(date +%s)"
|
||||||
$SUDO mkdir -p /opt/owrt-remote "$STATE_DIR" /etc/xray
|
$SUDO mkdir -p /opt/owrt-remote "$STATE_DIR" /etc/xray
|
||||||
$SUDO wget -O /opt/owrt-remote/owrt-remote-hub.py "$RAW_BASE/vps/owrt-remote-hub.py"
|
$SUDO wget -O /opt/owrt-remote/owrt-remote-hub.py "$RAW_BASE/vps/owrt-remote-hub.py?v=$cache_bust"
|
||||||
$SUDO wget -O /etc/systemd/system/owrt-remote.service "$RAW_BASE/vps/owrt-remote.service"
|
$SUDO wget -O /etc/systemd/system/owrt-remote.service "$RAW_BASE/vps/owrt-remote.service?v=$cache_bust"
|
||||||
$SUDO chmod +x /opt/owrt-remote/owrt-remote-hub.py
|
$SUDO chmod +x /opt/owrt-remote/owrt-remote-hub.py
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -168,6 +170,7 @@ print_result() {
|
|||||||
|
|
||||||
main() {
|
main() {
|
||||||
info "Ставлю $APP_NAME..."
|
info "Ставлю $APP_NAME..."
|
||||||
|
info "Installer: $INSTALLER_VERSION"
|
||||||
install_packages
|
install_packages
|
||||||
need_cmd curl
|
need_cmd curl
|
||||||
need_cmd wget
|
need_cmd wget
|
||||||
|
|||||||
Reference in new issue
Block a user