From b29a830046d38913ce0df090263f3506175bee18 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Sun, 9 Nov 2025 23:46:41 +0000 Subject: [PATCH] Fix bootstrap-token command to use correct env var and default path The bootstrap-token CLI command had two bugs: 1. Used PULSE_DATA_PATH instead of PULSE_DATA_DIR (typo) 2. Used /var/lib/pulse as fallback instead of /etc/pulse This caused the command to look in the wrong location for non-Docker deployments. Fixed to match config.Load() logic: - Check PULSE_DATA_DIR env var first - Fall back to /data for Docker, /etc/pulse otherwise --- cmd/pulse/bootstrap.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/pulse/bootstrap.go b/cmd/pulse/bootstrap.go index 4437c5b..81fa364 100644 --- a/cmd/pulse/bootstrap.go +++ b/cmd/pulse/bootstrap.go @@ -24,12 +24,12 @@ after successful setup completion.`, func showBootstrapToken() { // Determine data path (same logic as main server) - dataPath := os.Getenv("PULSE_DATA_PATH") + dataPath := os.Getenv("PULSE_DATA_DIR") if dataPath == "" { if os.Getenv("PULSE_DOCKER") == "true" { dataPath = "/data" } else { - dataPath = "/var/lib/pulse" + dataPath = "/etc/pulse" } }