Files
Pulse/copy_and_run.sh
rcourtman c2554403a0 Improve bootstrap token UX with smart environment detection
- 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.
2025-11-15 10:18:59 +00:00

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 ./...