From 6c3e6c43e7ff3f16de5f07cedb446a184f971a91 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Wed, 25 Feb 2026 15:25:45 +0100 Subject: [PATCH] Refactor zerobyte.sh to streamline Node.js setup Removed redundant NODE_VERSION setup for Node.js during the build process. --- ct/zerobyte.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ct/zerobyte.sh b/ct/zerobyte.sh index cd397ab94..53b4b6a20 100644 --- a/ct/zerobyte.sh +++ b/ct/zerobyte.sh @@ -1,6 +1,5 @@ #!/usr/bin/env bash -COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-https://git.community-scripts.org/community-scripts/ProxmoxVE/raw/branch/main}" -source <(curl -fsSL "$COMMUNITY_SCRIPTS_URL/misc/build.func") +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) # Copyright (c) 2021-2026 community-scripts ORG # Author: community-scripts # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE @@ -38,11 +37,9 @@ function update_script() { msg_info "Backing up Configuration" cp /opt/zerobyte/.env /opt/zerobyte.env.bak msg_ok "Backed up Configuration" - - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "zerobyte" "nicotsx/zerobyte" "tarball" - - # Workaround for high RAM during bun run build + NODE_VERSION="24" setup_nodejs + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "zerobyte" "nicotsx/zerobyte" "tarball" msg_info "Building Zerobyte" export NODE_OPTIONS="--max-old-space-size=3072"