CarmineCodes / Proxmox-No-Subscription-No-Problem

remove the enterprise repository to make it possible to update proxmox and remove the no subscription popup box on login
67 stars 17 forks source link

Automated patch #1

Open levid0s opened 5 months ago

levid0s commented 5 months ago

You could add the following sed command to automatically patch the file without having to open it in an editor:

sed -z -i 's/Ext.Msg.show({\n\s*title: gettext(\x27No valid subscription\x27),/void({\n   title: gettext(\x27No valid subscription\x27),/g' proxmoxlib.js
MuadDib81 commented 5 months ago

I would create a .bak file and group:

sed -z -i.bak 's/Ext.Msg.show\(({\n\s*title: gettext(\x27No valid subscription\x27)\),/void\1,/g' /usr/share/javascript/proxmox-widget-toolkit\proxmoxlib.js