From 276ce230f3adc2db8f5abcc7b5c09771ac254da6 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com> Date: Thu, 27 Nov 2025 14:31:15 +0100 Subject: [PATCH] Upgrade pve-scripts-local to node 24 (#9457) Co-authored-by: CanbiZ <47820557+MickLesk@users.noreply.github.com> Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com> --- ct/pve-scripts-local.sh | 39 +++------------------------- install/pve-scripts-local-install.sh | 2 +- 2 files changed, 4 insertions(+), 37 deletions(-) diff --git a/ct/pve-scripts-local.sh b/ct/pve-scripts-local.sh index 9747b6cabf..9aea8c9cf0 100644 --- a/ct/pve-scripts-local.sh +++ b/ct/pve-scripts-local.sh @@ -27,42 +27,9 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi - - if check_for_gh_release "ProxmoxVE-Local" "community-scripts/ProxmoxVE-Local"; then - msg_info "Stopping Services" - systemctl stop pvescriptslocal - msg_ok "Stopped Services" - - msg_info "Backup Data" - cp /opt/ProxmoxVE-Local/.env /opt/.env.bak - cp -r /opt/ProxmoxVE-Local/data /opt/data.bak - msg_ok "Backed up Data" - - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "ProxmoxVE-Local" "community-scripts/ProxmoxVE-Local" - - msg_info "Restoring Data" - if [[ -f /opt/.env.bak ]]; then - mv /opt/.env.bak /opt/ProxmoxVE-Local/.env - fi - if [[ -d /opt/data.bak ]]; then - rm -rf /opt/ProxmoxVE-Local/data - mv /opt/data.bak /opt/ProxmoxVE-Local/data - fi - msg_ok "Restored Data" - - msg_info "Updating PVE Scripts local" - cd /opt/ProxmoxVE-Local - chmod 755 data - $STD npm install - $STD npm run build - msg_ok "Updated PVE Scripts local" - - msg_info "Starting Services" - systemctl start pvescriptslocal - msg_ok "Started Services" - msg_ok "Updated successfully!" - fi - exit + + msg_custom "🚀" "${GN}" "The app offers a built-in updater. Please use it." + } start diff --git a/install/pve-scripts-local-install.sh b/install/pve-scripts-local-install.sh index 86f33016cb..fb64117ea2 100644 --- a/install/pve-scripts-local-install.sh +++ b/install/pve-scripts-local-install.sh @@ -20,7 +20,7 @@ $STD apt install -y \ expect msg_ok "Dependencies installed." -NODE_VERSION=22 setup_nodejs +NODE_VERSION=24 setup_nodejs fetch_and_deploy_gh_release "ProxmoxVE-Local" "community-scripts/ProxmoxVE-Local" msg_info "Installing PVE Scripts local"