Skip to content

Instantly share code, notes, and snippets.

@honwen
Last active December 11, 2021 11:49
Show Gist options
  • Save honwen/10076c0d1dbbcb86c09d0a72261e9ddb to your computer and use it in GitHub Desktop.
Save honwen/10076c0d1dbbcb86c09d0a72261e9ddb to your computer and use it in GitHub Desktop.
Remove the Proxmox “No Valid Subscription” message popup, Tested OK from 6.0 to 6.2-11
# /etc/apt/apt.conf.d/80upgradehook
DPkg::Post-Invoke { "/usr/local/bin/remove_pve_sub.sh"; };
# PVE 6.0-7.0
#!/bin/sh
sed ':begin; /response.result/,/{/ { /{/! { $! { N; b begin }; }; s/let.*[Aa]ctive.*/if (false) {/; };' -i /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
echo 'PVE Sub Cleaned'
exit $?
# /usr/local/bin/remove_pve_sub.sh
# sed -i -e "s/Proxmox.Utils.checked_command(Ext.emptyFn);//" /usr/share/pve-manager/js/pvemanagerlib.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment