Skip to content

Instantly share code, notes, and snippets.

@bjoern-r
Created April 6, 2022 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoern-r/ca7915b12695df2f74def090c77a3be8 to your computer and use it in GitHub Desktop.
Save bjoern-r/ca7915b12695df2f74def090c77a3be8 to your computer and use it in GitHub Desktop.
remove Proxmox PVE Subscription banner cronjob
#!/bin/sh
#### add a crontab for this script
# crontab -e
# # m h dom mon dow command
# 23 0 * * * /root/remove-subscription-banner.sh
if ! fgrep -q 'void({ //Ext.Msg.show({' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; then
#echo "patching ..."
sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment