Created
July 18, 2024 13:06
-
-
Save ergoz/97f759be6cfc9ce37f27999a70052be7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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