From a61c3882b536595f5f9b7a3e20b57e3c5045e019 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Fri, 28 Aug 2026 17:09:26 +0200 Subject: [PATCH] homepage: set CI=true so pnpm can self-heal node_modules without a TTY (#16841) --- ct/homepage.sh | 8 +++++++- install/homepage-install.sh | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ct/homepage.sh b/ct/homepage.sh index 3dc4457f8..91c8e0fa0 100644 --- a/ct/homepage.sh +++ b/ct/homepage.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main" +_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func" +source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func") # Copyright (c) 2021-2026 tteck # Author: tteck (tteckster) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE @@ -77,6 +79,10 @@ EOF rm /opt/homepage/env.bak chmod 600 /opt/homepage/.env fi + if ! grep -q '^Environment=CI=true' /etc/systemd/system/homepage.service; then + sed -i '/^ExecStart=/i Environment=CI=true' /etc/systemd/system/homepage.service + systemctl daemon-reload + fi msg_ok "Updated Homepage" msg_info "Starting service" diff --git a/install/homepage-install.sh b/install/homepage-install.sh index 4b4cc9f7d..bb660644d 100644 --- a/install/homepage-install.sh +++ b/install/homepage-install.sh @@ -63,6 +63,7 @@ Restart=always RestartSec=1 User=root WorkingDirectory=/opt/homepage/ +Environment=CI=true ExecStart=pnpm start [Install]