From ec573be7e0d31b430f2fe2a6e8c462c0190e2279 Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Thu, 5 Jun 2025 10:05:20 +0200 Subject: [PATCH] Update homarr.sh (#4974) --- ct/homarr.sh | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/ct/homarr.sh b/ct/homarr.sh index 223dc989d..dd448cfe9 100644 --- a/ct/homarr.sh +++ b/ct/homarr.sh @@ -92,6 +92,19 @@ EOF cp /opt/homarr/.env /opt/homarr-data-backup/.env msg_ok "Backup Data" + msg_info "Updating Nodejs" + $STD apt update + $STD apt upgrade nodejs -y + msg_ok "Updated Nodejs" + + $STD command -v jq || $STD apt-get update && $STD apt-get install -y jq + NODE_VERSION=$(curl -s https://raw.githubusercontent.com/homarr-labs/homarr/dev/package.json | jq -r '.engines.node | split(">=")[1] | split(".")[0]') + NODE_MODULE="pnpm@$(curl -s https://raw.githubusercontent.com/homarr-labs/homarr/dev/package.json | jq -r '.packageManager | split("@")[1]')" + install_node_and_modules + + rm -rf /opt/homarr + fetch_and_deploy_gh_release "homarr-labs/homarr" + msg_info "Updating and rebuilding ${APP} to v${RELEASE} (Patience)" rm /opt/run_homarr.sh cat <<'EOF' >/opt/run_homarr.sh @@ -117,12 +130,6 @@ node apps/nextjs/server.js & PID=$! wait $PID EOF chmod +x /opt/run_homarr.sh - $STD command -v jq || $STD apt-get update && $STD apt-get install -y jq - NODE_VERSION=$(curl -s https://raw.githubusercontent.com/homarr-labs/homarr/dev/package.json | jq -r '.engines.node | split(">=")[1] | split(".")[0]') - NODE_MODULE="pnpm@$(curl -s https://raw.githubusercontent.com/homarr-labs/homarr/dev/package.json | jq -r '.packageManager | split("@")[1]')" - install_node_and_modules - rm -rf /opt/homarr - fetch_and_deploy_gh_release "homarr-labs/homarr" mv /opt/homarr-data-backup/.env /opt/homarr/.env cd /opt/homarr $STD pnpm install --recursive --frozen-lockfile --shamefully-hoist