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
This commit is contained in:
parent
df185985eb
commit
b29a830046
1 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue