mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-08-31 00:23:16 +02:00
homepage: set CI=true so pnpm can self-heal node_modules without a TTY (#16841)
This commit is contained in:
committed by
GitHub
parent
856bd4301f
commit
a61c3882b5
+7
-1
@@ -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"
|
||||
|
||||
@@ -63,6 +63,7 @@ Restart=always
|
||||
RestartSec=1
|
||||
User=root
|
||||
WorkingDirectory=/opt/homepage/
|
||||
Environment=CI=true
|
||||
ExecStart=pnpm start
|
||||
|
||||
[Install]
|
||||
|
||||
Reference in New Issue
Block a user