From d815b27b58f14f6ac40993743993686eabd3d844 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Wed, 5 Aug 2026 14:44:28 +0200 Subject: [PATCH] ct/debian: load the engine from community-scripts/core Pilot for the core split. The bootstrap no longer sources ../misc/build.func from this repo; it takes the engine from core, preferring a local checkout (COMMUNITY_SCRIPTS_CORE_DIR, else a sibling ../core) and falling back to COMMUNITY_SCRIPTS_CORE_URL. Engine and scripts now resolve independently, so a fork or branch of core can be tested against these scripts without editing this file -- which is the workflow gap ProxmoxVED exists to work around. misc/ stays in place: the other 94 ct scripts still source it. It can be removed once they are converted too. --- ct/debian.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ct/debian.sh b/ct/debian.sh index 4ddf25c122..eb443ec20a 100644 --- a/ct/debian.sh +++ b/ct/debian.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash -source "$(dirname "${BASH_SOURCE[0]}")/../misc/build.func" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main}/misc/build.func") +# Engine comes from community-scripts/core; this repo only ships the scripts. +# Local checkout wins (COMMUNITY_SCRIPTS_CORE_DIR, else a sibling ../core), so a +# fork/branch of core can be tested without touching this file. +_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/shared/build.func" +source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/shared/build.func") # Copyright (c) 2021-2026 community-scripts ORG # Author: MickLesk (CanbiZ)