Skip to content

Instantly share code, notes, and snippets.

@irgendwr
Last active March 2, 2021 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save irgendwr/6dce8902330c2f43b05c726f68411002 to your computer and use it in GitHub Desktop.
Save irgendwr/6dce8902330c2f43b05c726f68411002 to your computer and use it in GitHub Desktop.
Removes the 'No valid Subscription' warning in the PVE webinterface.
#!/bin/bash
# Description:
# removes the 'No valid Subscription' warning in the webinterface
sed -i.bak "s/data.status !== 'Active'/false/g" /usr/share/pve-manager/js/pvemanagerlib.js
sed -i.bak "s/data.status === 'Active'/true/g" /usr/share/pve-manager/js/pvemanagerlib.js
sed -i.bak "s/data.status !== 'Active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
sed -i.bak "s/data.status.toLowerCase() !== 'active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
@irgendwr
Copy link
Author

Note: This needs to be re-run every time you update pve. To run it automatically after every apt upgrade create a new file /etc/apt/apt.conf.d/80removePVESubPopup with the following content:

DPkg::Post-Invoke {"/root/removePVESubPopup.sh";};

(assuming /root/removePVESubPopup.sh is the path to the script removePVESubPopup.sh)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment