备份
备份原始文件:cp /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js.bak
修改以下文件:/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
关闭订阅提示-No valid subscription
搜索关键词“No valid subscription”,注意 /* 到 */ 之间的内容,你可以像子方ippa一样注释,也可以把他们删除
.data.status.toLowerCase() !== 'active') { /* Ext.Msg.show({ title: gettext('No valid subscription'), icon: Ext.Msg.WARNING, message: Proxmox.Utils.getNoSubKeyHtml(res.data.url), buttons: Ext.Msg.OK, callback: function(btn) { if (btn !== 'ok') { return; } orig_cmd(); }, }); } else { */ orig_cmd();
关闭ProxmoxVE7的支持结束-EOLNotice
查找关键词“EOLNotice”,参考ippa子方下方面的内容,注意 /* 到 */ 之间的内容,你可以像我一样注释,也可以把他们删除
let me = this; // 注释掉显示 EOL 提示的部分 /* let iconCls = me.getIconCls(); let href = me.href.startsWith('http') ? me.href : `https://${me.href}`; let message = Ext.String.format( gettext('Support for {0} {1} ends on {2}'), me.product, me.version, me.eolDate); me.html = `<i class="fa ${iconCls}"></i> <a href="${href}" target="_blank" rel="noopener">${message} <i class="fa fa-external-link"></i></a> `; */ me.callParent(); },