mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-09 10:57:04 +00:00
- Fix utils.GetDataDir() to default to /etc/pulse instead of /var/lib/pulse - Add explicit PULSE_DATA_DIR=/etc/pulse to systemd service - This fixes issue #254 where alerts were trying to use wrong directory - Ensures consistency: Docker uses /data, manual installs use /etc/pulse
13 lines
No EOL
224 B
Go
13 lines
No EOL
224 B
Go
package utils
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
// GetDataDir returns the data directory path from environment or default
|
|
func GetDataDir() string {
|
|
if dir := os.Getenv("PULSE_DATA_DIR"); dir != "" {
|
|
return dir
|
|
}
|
|
return "/etc/pulse"
|
|
} |