tools/pve: source telemetry and core helpers from the core repo

Thirty scripts still pulled misc/api.func out of this repo, and three of
them misc/core.func, while update-apps.sh had already moved to the
community-scripts/core layout. Point the rest at the same place so the
directory stops being split across two sources.

misc/api.func is the monolithic predecessor of what core now ships split
into api/api.func and api/telemetry.func; both define init_tool_telemetry.
core/core.func carries every function misc/core.func has except
parse_dev_mode, which moved to core/dev-mode.func and is used by no
script here.

misc/api.func stays: vm/*.sh, misc/vm-core.func and turnkey.sh still
source it.
This commit is contained in:
MickLesk
2026-09-14 17:12:53 +02:00
parent 787dbf2420
commit 7552343758
30 changed files with 63 additions and 33 deletions
+2 -1
View File
@@ -30,7 +30,8 @@ CROSS="${RD}✗${CL}"
msg_info() { echo -ne " ${HOLD} ${YW}$1..."; }
# Telemetry
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/api.func) 2>/dev/null || true
_CS_CORE_URL="${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}"
source <(curl -fsSL "${_CS_CORE_URL}/api/api.func") 2>/dev/null || true
declare -f init_tool_telemetry &>/dev/null && init_tool_telemetry "pbs-microcode" "pve"
msg_ok() { echo -e "${BFR} ${CM} ${GN}$1${CL}"; }
msg_error() { echo -e "${BFR} ${CROSS} ${RD}$1${CL}"; }