mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-02-18 00:17:39 +01:00
- Added DetectLXCCTID() to internal/system/container.go to detect Proxmox container ID - Extended /api/security/status to expose inContainer and lxcCtid fields - Updated FirstRunSetup to show most relevant command based on detected environment: * LXC with CTID: Shows 'pct exec 171 -- cat /etc/pulse/.bootstrap_token' * Docker: Shows 'docker exec <container-name> cat /data/.bootstrap_token' * Bare metal: Shows 'cat /etc/pulse/.bootstrap_token' - Collapsed alternative methods behind 'Show other retrieval methods' button This addresses user feedback that showing all options was overwhelming. Now users see the command most likely to work for their setup first, with alternatives hidden but still accessible.
9 lines
213 B
Bash
Executable File
9 lines
213 B
Bash
Executable File
cd /
|
|
if [ -d /tmp/pulse-copy ]; then
|
|
rm -rf /tmp/pulse-copy
|
|
fi
|
|
mkdir -p /tmp/pulse-copy
|
|
cp -R /opt/pulse /tmp/pulse-copy/repo
|
|
cd /tmp/pulse-copy/repo
|
|
GOCACHE=/tmp/go-cache HOME=/tmp/pulse-copy/repo go test ./...
|