remove-subscription-notice.sh
· 758 B · Bash
Исходник
#!/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/
# https://github.com/jmclaren7/proxmox/blob/main/disable-subscription-notice.sh
# https://www.reddit.com/r/Proxmox/comments/1cdmoq9/i_wont_pay_for_proxmox/
# 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
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 |