chore: update install.sh references from GitHub to Forgejo

- Update header comment URL to src.d3v.ac/xtcnet/D3V-Server
- Update self-update URL in do_update to fetch install.sh from Forgejo

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
xtcnet 2026-03-17 23:06:47 +07:00
parent 91e493d81f
commit 4c0d3952cb

View file

@ -4,7 +4,7 @@ set -e
# ============================================================
# D3V-NPMWG Installer for Ubuntu/Debian
# xGat3 + WireGuard VPN
# https://github.com/xtcnet/D3V-NPMWG
# https://src.d3v.ac/xtcnet/D3V-Server
# ============================================================
INSTALL_DIR="/opt/d3v-npmwg"
@ -421,7 +421,7 @@ do_update() {
require_root
log_step "Checking for install.sh updates..."
local remote_script_url="https://raw.githubusercontent.com/xtcnet/D3V-NPMWG/master/install.sh"
local remote_script_url="https://src.d3v.ac/xtcnet/D3V-Server/raw/branch/master/install.sh"
if ! curl -sSL "$remote_script_url" | cmp -s "$0" -; then
log_warn "A newer version of install.sh is available. Updating script..."
curl -sSL "$remote_script_url" -o "$0"