mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 10:35:51 +00:00
714c2b753d
Fixed bug where config.yaml would end up with root:root 600 permissions after the installer modified it, causing service startup failures with "permission denied" errors. Root cause: Two code paths modified config.yaml without resetting ownership: 1. ensure_control_plane_config() - used mktemp (creates root-owned file), then mv'd it over config.yaml without chown/chmod 2. HTTP mode configuration - appended to config.yaml without resetting perms Fix: Added chown/chmod after both modifications: - Line 1601-1602: After control-plane config update - Line 1860-1861: After HTTP mode config append Now config.yaml maintains pulse-sensor-proxy:pulse-sensor-proxy 644 permissions after all modifications, allowing the service to start correctly. This bug was discovered during repair logic testing - the service failed to start after the installer ran, even though the fmt.Sprintf argument alignment fix was working correctly.