r4: self-installing monthly GeoIP refresh cron (service hook + puller)

This commit is contained in:
2026-08-13 15:39:49 +00:00
parent f1547818a4
commit b5cb88c560
2 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -12,7 +12,7 @@ fallback.
1. Pre-flight checks — root, Ubuntu 20.04/22.04/24.04, x86_64, RAM/disk, re-install guard 1. Pre-flight checks — root, Ubuntu 20.04/22.04/24.04, x86_64, RAM/disk, re-install guard
2. Installs missing deps (`wget`, `unzip`, `tar`) 2. Installs missing deps (`wget`, `unzip`, `tar`)
3. Downloads `XUI_1.5.13-r3.zip` (~659 MB, r3 runtime repack) from the Gitea mirror (falls back to GitHub) 3. Downloads `XUI_1.5.13-r4.zip` (~659 MB, r4 runtime repack) from the Gitea mirror (falls back to GitHub)
4. Verifies the SHA-256 checksum (on by default) 4. Verifies the SHA-256 checksum (on by default)
5. Extracts `install`, `database.sql`, `xui.tar.gz` 5. Extracts `install`, `database.sql`, `xui.tar.gz`
6. Runs the bundled `./install` **non-interactively** — auto-generates a valid 6. Runs the bundled `./install` **non-interactively** — auto-generates a valid
@@ -55,8 +55,8 @@ and the one-liner picks it up, no version bump needed.
The 661 MB release is hosted on our Gitea, publicly downloadable with **no auth**: The 661 MB release is hosted on our Gitea, publicly downloadable with **no auth**:
``` ```
https://git.ops01.hprx.zip/api/packages/seed/generic/xui/1.5.13-r3/XUI_1.5.13-r3.zip https://git.ops01.hprx.zip/api/packages/seed/generic/xui/1.5.13-r4/XUI_1.5.13-r4.zip
sha256: 4cc7d31074dcfd5497235039773c75257051089382cb5b6a138da991fe732234 (r3: PHP 7.4.33, ionCube 15.5, GeoIP 2026-08-13 refresh, patched LB/proxy payloads; stock 1.5.13 + r2 kept for rollback) sha256: daab04cab369c04676d1eac2fd2520369b13fa5844e08347d67d778b098e20b0 (r3: PHP 7.4.33, ionCube 15.5, GeoIP 2026-08-13 refresh, patched LB/proxy payloads; stock 1.5.13 + r2 kept for rollback)
``` ```
Re-uploading later (e.g. a new version) — from any box with the Gitea token: Re-uploading later (e.g. a new version) — from any box with the Gitea token:
@@ -117,7 +117,7 @@ To pull a local copy anytime:
```bash ```bash
curl -L -o release/XUI_1.5.13.zip \ curl -L -o release/XUI_1.5.13.zip \
"https://git.ops01.hprx.zip/api/packages/seed/generic/xui/1.5.13-r3/XUI_1.5.13-r3.zip" "https://git.ops01.hprx.zip/api/packages/seed/generic/xui/1.5.13-r4/XUI_1.5.13-r4.zip"
``` ```
## Credentials ## Credentials
+3 -3
View File
@@ -16,11 +16,11 @@ set -euo pipefail
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Config # Config
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
RELEASE_NAME="XUI_1.5.13-r3.zip" RELEASE_NAME="XUI_1.5.13-r4.zip"
# Primary download source: self-hosted Gitea generic-package mirror (fast, under # Primary download source: self-hosted Gitea generic-package mirror (fast, under
# our control). Override with the XUI_URL env var to point elsewhere. # our control). Override with the XUI_URL env var to point elsewhere.
DEFAULT_URL="https://git.ops01.hprx.zip/api/packages/seed/generic/xui/1.5.13-r3/${RELEASE_NAME}" DEFAULT_URL="https://git.ops01.hprx.zip/api/packages/seed/generic/xui/1.5.13-r4/${RELEASE_NAME}"
URL="${XUI_URL:-$DEFAULT_URL}" URL="${XUI_URL:-$DEFAULT_URL}"
# Fallback source: the upstream XUIPatch GitHub release. Tried automatically if # Fallback source: the upstream XUIPatch GitHub release. Tried automatically if
@@ -29,7 +29,7 @@ FALLBACK_URL="${XUI_FALLBACK_URL:-https://github.com/xuione/XUIPatch/releases/do
# Integrity check: known-good SHA-256 of XUI_1.5.13.zip. Verified before extract. # Integrity check: known-good SHA-256 of XUI_1.5.13.zip. Verified before extract.
# Override/clear with the XUI_SHA256 env var (set to "" to skip). # Override/clear with the XUI_SHA256 env var (set to "" to skip).
EXPECTED_SHA256="${XUI_SHA256-4cc7d31074dcfd5497235039773c75257051089382cb5b6a138da991fe732234}" EXPECTED_SHA256="${XUI_SHA256-daab04cab369c04676d1eac2fd2520369b13fa5844e08347d67d778b098e20b0}"
WORKDIR="${XUI_WORKDIR:-/opt/xui_install}" WORKDIR="${XUI_WORKDIR:-/opt/xui_install}"