Malin revised this gist . Go to revision
1 file changed, 0 insertions, 0 deletions
gistfile1.txt renamed to remove-subscription-notice.sh
File renamed without changes
Malin revised this gist . Go to revision
1 file changed, 13 insertions
gistfile1.txt(file created)
@@ -0,0 +1,13 @@ | |||
1 | + | #!/bin/bash | |
2 | + | # Removes the "You do not have a valid subscription for this server" popup message while logging in | |
3 | + | # https://johnscs.com/remove-proxmox51-subscription-notice/ | |
4 | + | # https://github.com/jmclaren7/proxmox/blob/main/disable-subscription-notice.sh | |
5 | + | # https://www.reddit.com/r/Proxmox/comments/1cdmoq9/i_wont_pay_for_proxmox/ | |
6 | + | # Manual steps: | |
7 | + | # cd /usr/share/javascript/proxmox-widget-toolkit | |
8 | + | # cp proxmoxlib.js proxmoxlib.js.bak | |
9 | + | # nano proxmoxlib.js | |
10 | + | # search for "function(orig_cmd) {" and add "orig_cmd();" and "return;" just after it | |
11 | + | # systemctl restart pveproxy.service | |
12 | + | ||
13 | + | 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 |