Skip to content

Instantly share code, notes, and snippets.

@erronjason
Last active March 27, 2017 19:53
Show Gist options
  • Save erronjason/dded81f9996a64f7648f2d968d75a1b3 to your computer and use it in GitHub Desktop.
Save erronjason/dded81f9996a64f7648f2d968d75a1b3 to your computer and use it in GitHub Desktop.
Disable Proxmox "license" nag via cron - we don't need no stinkin' support
#!/usr/bin/env bash
# This inserts a cronjob at the top of the hour to remove the
# license nag from proxmox. The command alone is:
# sed -i "s/data.status !== 'Active'/false/g" /usr/share/pve-manager/js/pvemanagerlib.js
crontab -l > tmpcron
echo "0 * * * * sed -i "s/data.status !== 'Active'/false/g" /usr/share/pve-manager/js/pvemanagerlib.js" >> tmpcron
crontab tmpcron
rm tmpcron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment