Update URLs to self-hosted Gitea

This commit is contained in:
SamNet-dev
2026-02-20 23:35:17 -06:00
parent 973d7b6749
commit 3654565b52
2 changed files with 14 additions and 14 deletions

View File

@@ -14,7 +14,7 @@
# ╚═══════════════════════════════════════════════════════════════════╝
# core engine: https://github.com/Psiphon-Labs/psiphon-tunnel-core
# Usage:
# curl -sL https://raw.githubusercontent.com/SamNet-dev/conduit-manager/main/conduit.sh | sudo bash
# curl -sL https://git.samnet.dev/SamNet-dev/conduit/raw/branch/main/conduit.sh | sudo bash
#
# Reference: https://github.com/ssmirr/conduit/releases/latest
# Conduit CLI options:
@@ -8465,7 +8465,7 @@ show_about() {
echo ""
echo -e "${CYAN}──────────────────────────────────────────────────────────────────${NC}"
echo -e " ${BOLD}Made by Sam - SamNet Technologies${NC}"
echo -e " GitHub: ${CYAN}https://github.com/SamNet-dev/conduit-manager${NC}"
echo -e " Git: ${CYAN}https://git.samnet.dev/SamNet-dev/conduit${NC}"
echo -e " Twitter: ${CYAN}https://x.com/YourAnonHeart${NC}"
echo -e " Psiphon: ${CYAN}https://psiphon.ca${NC}"
echo ""
@@ -9302,8 +9302,8 @@ SVCEOF
# Fetch latest commit SHA from GitHub API
local _remote_sha
_remote_sha=$(curl -fsSL --connect-timeout 5 --max-time 10 \
"https://api.github.com/repos/SamNet-dev/conduit-manager/commits/main" \
-H "Accept: application/vnd.github.sha" 2>/dev/null) || true
"https://git.samnet.dev/api/v1/repos/SamNet-dev/conduit/branches/main" \
2>/dev/null | grep -o '"id":"[a-f0-9]*"' | head -1 | cut -d'"' -f4) || true
# Validate: must be 40+ hex chars (not JSON error or HTML from a proxy)
if [ -n "$_remote_sha" ] && [ ${#_remote_sha} -ge 40 ]; then
@@ -13080,7 +13080,7 @@ deploy_to_server() {
[ "$deploy_mc" != "0" ] && env_prefix+="MAX_CLIENTS=$deploy_mc "
env_prefix+="BANDWIDTH=$deploy_bw "
local install_url="https://raw.githubusercontent.com/SamNet-dev/conduit-manager/main/conduit.sh"
local install_url="https://git.samnet.dev/SamNet-dev/conduit/raw/branch/main/conduit.sh"
# Download then run — try curl first, fall back to wget
local remote_cmd="${_sudo}bash -c 'export ${env_prefix}; { curl -fsSL --max-time 60 \"${install_url}\" -o /tmp/conduit_install.sh 2>/dev/null || wget -qO /tmp/conduit_install.sh \"${install_url}\" 2>/dev/null; } && bash /tmp/conduit_install.sh --batch; _rc=\$?; rm -f /tmp/conduit_install.sh; exit \$_rc'"
@@ -14924,7 +14924,7 @@ update_conduit() {
# --- Phase 1: Script update ---
echo -e "${BOLD}Phase 1: Checking for script updates...${NC}"
local update_url="https://raw.githubusercontent.com/SamNet-dev/conduit-manager/main/conduit.sh"
local update_url="https://git.samnet.dev/SamNet-dev/conduit/raw/branch/main/conduit.sh"
local tmp_script="/tmp/conduit_update_$$.sh"
if curl -fsSL --max-time 30 --max-filesize 2097152 -o "$tmp_script" "$update_url" 2>/dev/null; then
@@ -15039,8 +15039,8 @@ update_conduit() {
rm -f /tmp/.conduit_update_available
local _cur_sha
_cur_sha=$(curl -fsSL --connect-timeout 5 --max-time 10 \
"https://api.github.com/repos/SamNet-dev/conduit-manager/commits/main" \
-H "Accept: application/vnd.github.sha" 2>/dev/null) || true
"https://git.samnet.dev/api/v1/repos/SamNet-dev/conduit/branches/main" \
2>/dev/null | grep -o '"id":"[a-f0-9]*"' | head -1 | cut -d'"' -f4) || true
if [ -n "$_cur_sha" ] && [ ${#_cur_sha} -ge 40 ]; then
_cur_sha="${_cur_sha:0:40}"
case "$_cur_sha" in *[!a-f0-9]*) _cur_sha="" ;; esac
@@ -15171,8 +15171,8 @@ MANAGEMENT
# Save current commit SHA as update baseline
local _cur_sha
_cur_sha=$(curl -fsSL --connect-timeout 5 --max-time 10 \
"https://api.github.com/repos/SamNet-dev/conduit-manager/commits/main" \
-H "Accept: application/vnd.github.sha" 2>/dev/null) || true
"https://git.samnet.dev/api/v1/repos/SamNet-dev/conduit/branches/main" \
2>/dev/null | grep -o '"id":"[a-f0-9]*"' | head -1 | cut -d'"' -f4) || true
if [ -n "$_cur_sha" ] && [ ${#_cur_sha} -ge 40 ]; then
_cur_sha="${_cur_sha:0:40}"
case "$_cur_sha" in *[!a-f0-9]*) _cur_sha="" ;; esac