mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-21 11:55:53 +02:00
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:
@@ -30,7 +30,8 @@ msg_ok() { echo -e "${BFR} ${CM} ${GN}$1${CL}"; }
|
||||
msg_error() { echo -e "${BFR} ${CROSS} ${RD}$1${CL}"; }
|
||||
|
||||
# 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 "microcode" "pve"
|
||||
|
||||
header_info
|
||||
|
||||
Reference in New Issue
Block a user