From 86d334c2048ab08bff773d0d0afe5d165fc28bf5 Mon Sep 17 00:00:00 2001 From: MacRimi <123239993+MacRimi@users.noreply.github.com> Date: Wed, 6 Aug 2025 15:21:31 +0200 Subject: [PATCH] Update remove-banner-pve9.sh --- scripts/gobal/remove-banner-pve9.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/gobal/remove-banner-pve9.sh b/scripts/gobal/remove-banner-pve9.sh index a1fb730..ed1c364 100644 --- a/scripts/gobal/remove-banner-pve9.sh +++ b/scripts/gobal/remove-banner-pve9.sh @@ -15,6 +15,18 @@ fi load_language initialize_cache +# Tool registration system +ensure_tools_json() { + [ -f "$TOOLS_JSON" ] || echo "{}" > "$TOOLS_JSON" +} + +register_tool() { + local tool="$1" + local state="$2" + ensure_tools_json + jq --arg t "$tool" --argjson v "$state" '.[$t]=$v' "$TOOLS_JSON" > "$TOOLS_JSON.tmp" && mv "$TOOLS_JSON.tmp" "$TOOLS_JSON" +} + remove_subscription_banner_pve9() { local JS_FILE="/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js" local MIN_JS_FILE="/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.min.js"