2 Commits

Author SHA1 Message Date
d2e04a4730 Fix apt hook logic to properly persist nag removal after updates
1. Fixed the apt hook logic
The original script used dpkg -V with backwards logic. The new version directly checks if nag patterns are present in the files using grep, which is much more reliable:

2. More robust pattern matching
Added multiple sed patterns to catch different variations of how the subscription check might be written:

data.status !== 'active'
data.status!=='active'
data.status != 'active'
data.status!='active'

3. Better testing and validation
The script now includes a test_current_fix() function that verifies whether nags are actually present and whether the fix is working.

4. Improved error handling
Better feedback about what's happening and whether the fix is working correctly.
2025-08-13 21:24:13 +00:00
eef7f960f3 Add proxmox-nag-remover.sh 2025-07-24 20:41:23 +00:00