mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-04-30 12:30:17 +00:00
fix(sensor-proxy): fix remaining unsafe config writers
1. Self-heal script: Add BINARY_PATH variable so CLI migration actually runs - Previously logged "Binary not available" and skipped migration 2. migrate-sensor-proxy-control-plane.sh: Use atomic write (temp + rename) - Prevents partial writes if script is interrupted - Reduces race window with running service These were the remaining gaps identified by Codex review. NOTE: migrate-sensor-proxy-control-plane.sh still uses Python manipulation instead of the Phase 2 CLI, but as a one-time migration script for upgrades from v4.31, the atomic write provides sufficient protection. Future versions can deprecate this script entirely.
This commit is contained in:
parent
d554c9dbb2
commit
d6084e29dd
2 changed files with 24 additions and 10 deletions
|
|
@ -3094,6 +3094,7 @@ else
|
|||
set -euo pipefail
|
||||
|
||||
SERVICE="pulse-sensor-proxy"
|
||||
BINARY_PATH="/opt/pulse/sensor-proxy/bin/pulse-sensor-proxy"
|
||||
INSTALLER="/opt/pulse/sensor-proxy/install-sensor-proxy.sh"
|
||||
CTID_FILE="/etc/pulse-sensor-proxy/ctid"
|
||||
PENDING_FILE="/etc/pulse-sensor-proxy/pending-control-plane.env"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue