Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix(install): align bootstrap token path and data directory config (fixes #962)

rcourtman5cd6224997a9
diff --git a/install.sh b/install.sh
index 55e72b01db..d521b70100 100755
--- a/install.sh
+++ b/install.sh
@@ -3559,8 +3559,8 @@ print_completion() {
fi
# Show bootstrap token on fresh install
- local DATA_DIR="${DATA_PATH:-/var/lib/pulse}"
- local TOKEN_FILE="$DATA_DIR/.bootstrap_token"
+ local TOKEN_DATA_DIR="${CONFIG_DIR:-/etc/pulse}"
+ local TOKEN_FILE="$TOKEN_DATA_DIR/.bootstrap_token"
if [[ -f "$TOKEN_FILE" ]]; then
BOOTSTRAP_TOKEN=$(cat "$TOKEN_FILE" 2>/dev/null | tr -d '\n')
if [[ -n "$BOOTSTRAP_TOKEN" ]]; then
diff --git a/internal/config/config.go b/internal/config/config.go
index 2207041c0b..88f4395eea 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -75,8 +75,8 @@ type Config struct {
BackendPort int `envconfig:"BACKEND_PORT" default:"3000"`
FrontendHost string `envconfig:"FRONTEND_HOST" default:""`
FrontendPort int `envconfig:"FRONTEND_PORT" default:"7655"`
- ConfigPath string `envconfig:"CONFIG_PATH" default:"/etc/pulse"`
- DataPath string `envconfig:"DATA_PATH" default:"/var/lib/pulse"`
+ ConfigPath string `envconfig:"CONFIG_PATH"`
+ DataPath string `envconfig:"DATA_DIR"`
AppRoot string `json:"-"` // Root directory of the application (where binary lives)
PublicURL string `envconfig:"PULSE_PUBLIC_URL" default:""` // Full URL to access Pulse (e.g., http://192.168.1.100:7655)
AgentConnectURL string `envconfig:"PULSE_AGENT_CONNECT_URL" default:""` // Dedicated direct connect URL for agents (e.g. http://192.168.1.5:7655)