Advertisement
LAPINPT

proxmox_noreminder

Apr 27th, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.52 KB | None | 0 0
  1. #!/bin/bash
  2. # automatic removal of Proxmox subscription reminder
  3. # proxmox_noreminder.sh
  4.  
  5. PVEjs=/usr/share/pve-manager/ext6/pvemanagerlib.js
  6.  
  7. grep -q 'if .data.status !== .Active' $PVEjs && {
  8.     rm -f $PVEjs.bak
  9.     sed -i.bak '/if .data.status !== .Active/s/!/=/' $PVEjs
  10.     sed -i 's/You do not have a valid subscription for this server/This server is receiving updates from the Proxmox VE No-Subscription Repository/' $PVEjs
  11.     sed -i 's/No valid subscription/Community Edition/' $PVEjs
  12.     diff $PVEjs.bak $PVEjs
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement