Skip to content

Instantly share code, notes, and snippets.

@martin-juul
Last active February 1, 2021 20:38
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martin-juul/c4ac5c43c66452592597d894f1c9da2a to your computer and use it in GitHub Desktop.
Save martin-juul/c4ac5c43c66452592597d894f1c9da2a to your computer and use it in GitHub Desktop.
[Remove nag prompt Proxmox VE 5.1] How to remove the nag screen in Proxmox VE 5.1 #promox #nag #howto

Find this code block:

if (!me.login) {
    me.login = Ext.create('PVE.window.LoginWindow', {
  handler: function(data) {
      me.login = null;
      me.updateLoginData(data);
      Proxmox.Utils.checked_command(function() {}); // display subscription status
  }
    });
}

Mines at line 30603

Comment out Proxmox.Utils.checked_command(function() {}); // display subscription status

if (!me.login) {
    me.login = Ext.create('PVE.window.LoginWindow', {
  handler: function(data) {
      me.login = null;
      me.updateLoginData(data);
      // Proxmox.Utils.checked_command(function() {}); // display subscription status
  }
    });
}
@Protocol73
Copy link

Use : sed -i.bak 's/NotFound/Active/g' /usr/share/perl5/PVE/API2/Subscription.pm && systemctl restart pveproxy.service
https://johnscs.com/remove-proxmox51-subscription-notice/
Works on Proxmox 5.2

@JamesPGriffith
Copy link

I just confirmed that the sed one-liner works on 5.3-5

@Drauku
Copy link

Drauku commented Feb 1, 2021

Confirmed working on 6.3-2 just now.

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