Skip to content

Instantly share code, notes, and snippets.

@ergoz
Created July 18, 2024 13:06
Show Gist options
  • Save ergoz/97f759be6cfc9ce37f27999a70052be7 to your computer and use it in GitHub Desktop.
Save ergoz/97f759be6cfc9ce37f27999a70052be7 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Removes the "You do not have a valid subscription for this server" popup message while logging in
# https://johnscs.com/remove-proxmox51-subscription-notice/
#
# Manual steps:
# cd /usr/share/javascript/proxmox-widget-toolkit
# cp proxmoxlib.js proxmoxlib.js.bak
# nano proxmoxlib.js
# search for "function(orig_cmd) {" and add "orig_cmd();" and "return;" just after it
# systemctl restart pveproxy.service
sed -Ezi.bak "s/(function\(orig_cmd\) \{)/\1\n\torig_cmd\(\);\n\treturn;/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment