Last active
March 2, 2021 17:43
-
-
Save irgendwr/6dce8902330c2f43b05c726f68411002 to your computer and use it in GitHub Desktop.
Removes the 'No valid Subscription' warning in the PVE webinterface.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:(assuming
/root/removePVESubPopup.sh
is the path to the scriptremovePVESubPopup.sh
)