mirror of
https://github.com/taylanbakircioglu/haproxy-openmanager.git
synced 2026-09-18 16:45:19 +00:00
8351a6439b
- PROTECTED_PATHS array prevents accidental removal of haproxy.cfg, haproxy binary, haproxy.service, haproxy logs - safe_rm() blocks any path not containing "haproxy-agent" - Process killer verifies command line contains "haproxy-agent" and skips HAProxy master PID - Binary removal validates filename is exactly "haproxy-agent" - Pre-flight safety check reports HAProxy status before starting - Post-uninstall HAProxy integrity check confirms nothing was touched Co-authored-by: Cursor <cursoragent@cursor.com>