mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 18:45:53 +00:00
dda29b2e22
The install-sensor-proxy.sh script was blindly appending allowed_nodes sections to the config file without checking if they already existed. When the script was re-run or if the initial config already had an allowed_nodes section, this created duplicate YAML keys that caused the proxy service to fail with parse errors. Changes: - Add update_allowed_nodes() helper function that safely updates the allowed_nodes section by removing any existing ones first - Replace all three cat >> config.yaml heredocs with calls to the helper function (cluster nodes, standalone mode, pvecm fallback) - Uses awk to properly parse and remove multi-line YAML sections This makes the installer idempotent and prevents config corruption on re-runs. Fixes issue where proxy service crashed with: 'mapping key "allowed_nodes" already defined at line X'