From 65f74bab9e1eeddcf2aafa183b25cd7049171f62 Mon Sep 17 00:00:00 2001 From: MickLesk <47820557+MickLesk@users.noreply.github.com> Date: Wed, 26 Aug 2026 13:52:58 +0200 Subject: [PATCH] Point the last Gitea URLs at GitHub raw git.community-scripts.org is being decommissioned. Three of these would have broken with it: docker-vm.sh and pve-privilege-converter.sh sourced the engine from the mirror, and misc/vm-core.func defaulted COMMUNITY_SCRIPTS_URL to it. The DNS preflight no longer resolves the host either. ct/gitea.sh and ct/gitea-mirror.sh are untouched -- those install the application, they have nothing to do with our mirror. --- misc/alpine-install.func | 2 +- misc/api.func | 2 +- misc/core.func | 2 +- misc/install.func | 2 +- misc/vm-core.func | 2 +- tools/pve/pve-privilege-converter.sh | 2 +- vm/docker-vm.sh | 6 +++--- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/misc/alpine-install.func b/misc/alpine-install.func index 55cadeac1..36de2315b 100644 --- a/misc/alpine-install.func +++ b/misc/alpine-install.func @@ -136,7 +136,7 @@ network_check() { fi # DNS resolution checks for GitHub-related domains - GIT_HOSTS=("github.com" "raw.githubusercontent.com" "api.github.com" "git.community-scripts.org") + GIT_HOSTS=("github.com" "raw.githubusercontent.com" "api.github.com") GIT_STATUS="Git DNS:" DNS_FAILED=false diff --git a/misc/api.func b/misc/api.func index d413feed9..ac7d40093 100644 --- a/misc/api.func +++ b/misc/api.func @@ -63,7 +63,7 @@ TELEMETRY_ERROR_MAX_BYTES=10240 # ------------------------------------------------------------------------------ # detect_repo_source() # -# - Dynamically detects which GitHub/Gitea repo the scripts were loaded from +# - Dynamically detects which GitHub repo the scripts were loaded from # - Inspects /proc/$$/cmdline and $0 to find the source URL # - Maps detected repo to one of three canonical values: # * "ProxmoxVE" — official community-scripts/ProxmoxVE (production) diff --git a/misc/core.func b/misc/core.func index a7c48562e..b83b3a51c 100644 --- a/misc/core.func +++ b/misc/core.func @@ -11,7 +11,7 @@ # execution helpers used throughout the Community-Scripts ecosystem. # # Usage: -# source <(curl -fsSL https://git.community-scripts.org/.../core.func) +# source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/core.func) # load_functions # # ============================================================================== diff --git a/misc/install.func b/misc/install.func index 07cd2b30f..f49499699 100644 --- a/misc/install.func +++ b/misc/install.func @@ -211,7 +211,7 @@ network_check() { fi # DNS resolution checks for GitHub-related domains (IPv4 and/or IPv6) - GIT_HOSTS=("github.com" "raw.githubusercontent.com" "api.github.com" "git.community-scripts.org") + GIT_HOSTS=("github.com" "raw.githubusercontent.com" "api.github.com") GIT_STATUS="Git DNS:" DNS_FAILED=false diff --git a/misc/vm-core.func b/misc/vm-core.func index d6303264e..458501e94 100644 --- a/misc/vm-core.func +++ b/misc/vm-core.func @@ -14,7 +14,7 @@ declare -A MSG_INFO_SHOWN [[ -n "${_CORE_FUNC_LOADED:-}" ]] && return _CORE_FUNC_LOADED=1 -COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-https://git.community-scripts.org/community-scripts/ProxmoxVE/raw/branch/main}" +COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}" load_api_functions() { if ! declare -f post_to_api_vm >/dev/null 2>&1; then diff --git a/tools/pve/pve-privilege-converter.sh b/tools/pve/pve-privilege-converter.sh index 3207bb74e..c9ecca773 100644 --- a/tools/pve/pve-privilege-converter.sh +++ b/tools/pve/pve-privilege-converter.sh @@ -10,7 +10,7 @@ if ! command -v curl >/dev/null 2>&1; then apt-get update >/dev/null 2>&1 apt-get install -y curl >/dev/null 2>&1 fi -source <(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVE/raw/branch/main/misc/core.func) +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/core.func) source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/api.func) 2>/dev/null || true load_functions declare -f init_tool_telemetry &>/dev/null && init_tool_telemetry "pve-privilege-converter" "pve" diff --git a/vm/docker-vm.sh b/vm/docker-vm.sh index 35d247333..575fc8507 100644 --- a/vm/docker-vm.sh +++ b/vm/docker-vm.sh @@ -8,9 +8,9 @@ # Docker VM - Creates a Docker-ready Virtual Machine # ============================================================================== -source <(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVE/raw/branch/main/misc/api.func) 2>/dev/null -source <(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVE/raw/branch/main/misc/vm-core.func) 2>/dev/null -source <(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVE/raw/branch/main/misc/cloud-init.func) 2>/dev/null || true +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/api.func) 2>/dev/null +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/vm-core.func) 2>/dev/null +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/cloud-init.func) 2>/dev/null || true # ============================================================================== # SCRIPT VARIABLES