Proxmox VE技巧 移除PVE “没有有效订阅” 的弹窗提示

登陆的时候提示没有有效的订阅You do not have a valid subscription for this server. Please visit www.proxmox.com to get a list of available options.

用的是免费版的,所以每次都提示这个没有有效的订阅.

解决方法1:

修改文件/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js 修改之前记得先备份一下

然后找到

if (data.status !== 'Active') {

 

 修改为

if (false) {

 

 然后保存,重启网页服务

systemctl restart pveproxy

解决方法2

 Ext.Msg.show({
修改为
 Ext.Msg.noshow({

转载于:https://blog.csdn.net/weixin_34195142/article/details/91935877

以上是旧版本,下面是9.x处理方法

cp /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js.bak

line_num=$(grep -n "res.data.status.toLowerCase() !== 'active'" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js | head -1 | cut -d: -f1)
sed -i "${line_num}s/!==/===/" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js

systemctl restart pveproxy

转载于:https://zhuanlan.zhihu.com/p/1975631361869103454

posted @ 2020-06-13 16:22  米和大肉  阅读(5695)  评论(0)    收藏  举报