Proxmox - Supprimer le message de souscription à la version entreprise

Proxmox VE > 5.1-46

sed -i.bak 's/NotFound/Active/g' /usr/share/perl5/PVE/API2/Subscription.pm && systemctl restart pveproxy.service

Proxmox VE < 5.1-46

cp /usr/share/pve-manager/js/pvemanagerlib.js  /usr/share/pve-manager/js/pvemanagerlib.js.bck 
if (data.status === 'Active') {
    Ext.Msg.show({
      title: gettext('No valid subscription'),
      icon: Ext.Msg.WARNING,
      msg: PVE.Utils.noSubKeyHtml,
      buttons: Ext.Msg.OK,
      callback: function(btn) {
          if (btn !== 'ok') {
              return;
          }
          orig_cmd();
      }
    });
} else {
    orig_cmd();
}

Remplace with :

//if (data.status === 'Active') {
//    Ext.Msg.show({
//      title: gettext('No valid subscription'),
//      icon: Ext.Msg.WARNING,
//      msg: PVE.Utils.noSubKeyHtml,
//      buttons: Ext.Msg.OK,
//      callback: function(btn) {
//          if (btn !== 'ok') {
//              return;
//          }
//          orig_cmd();
//      }
//    });
//} else {
      orig_cmd();
//} 
Back to top