mike 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
2025-07-28 06:44:22 +00:00
2025-07-28 06:48:13 +00:00

Universal Proxmox Subscription Nag Remover

A standalone script to remove the Proxmox subscription warning from the web interface.
Supports Proxmox Virtual Environment (PVE), Proxmox Backup Server (PBS), and Proxmox Mail Gateway (PMG).
Fixes persist across updates and are reapplied automatically.


Features

  • Works with PVE, PBS, and PMG
  • Automatically detects your Proxmox product
  • Applies the correct patch for each product
  • Persists across updates via APT hook
  • Supports both desktop and mobile interfaces (PMG)
  • Based on tteck's community scripts, but self-contained

Usage

Run as root:

sudo ./remove-proxmox-nag.sh

Youll be prompted before continuing.
The patch modifies proxmoxlib.js and installs an apt.conf.d script to automatically reapply after upgrades.


To Reinstall or Reapply

Delete the APT hook and rerun the script:

sudo rm /etc/apt/apt.conf.d/no-nag-script
sudo ./remove-proxmox-nag.sh

Note on Ethics

This script removes only the UI nag banner.
It does not interfere with any core functionality or licensing checks.

If you use Proxmox in production, please consider purchasing a subscription.
This script is intended only for personal, homelab, and non-commercial educational use.


License

This project is released under the MIT License.

Portions of this script are based on the excellent work in the community-scripts project by tteck and contributors, which is also MIT-licensed.


© 2025 NoNinjas.com

MIT License. See LICENSE file for full text.

Proxmox® is a registered trademark of Proxmox Server Solutions GmbH. This project is not affiliated with or endorsed by Proxmox.

Description
Removes the Proxmox subscription nag from PVE, PBS, and PMG. Safe, persistent, and self-reapplying after upgrades. Based on community scripts.
Readme MIT 40 KiB
Languages
Shell 100%