homepage: set CI=true so pnpm can self-heal node_modules without a TTY (#16841)

This commit is contained in:
CanbiZ (MickLesk)
2026-08-28 17:09:26 +02:00
committed by GitHub
parent 856bd4301f
commit a61c3882b5
2 changed files with 8 additions and 1 deletions
+7 -1
View File
@@ -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"
+1
View File
@@ -63,6 +63,7 @@ Restart=always
RestartSec=1
User=root
WorkingDirectory=/opt/homepage/
Environment=CI=true
ExecStart=pnpm start
[Install]