Last active
April 13, 2024 10:48
-
-
Save levid0s/c0382a1656c259dd23628f7520394c06 to your computer and use it in GitHub Desktop.
Proxmox Subscription Nag Disable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disable Subscription Nag Dialog | |
ts=$(date +%Y%m%d-%H%M%S) && \ | |
pushd /usr/share/javascript/proxmox-widget-toolkit && \ | |
sed -z "-i.bak.$ts" 's/Ext.Msg.show({\n\s*title: gettext(\x27No valid subscription\x27),/void({ title: gettext(\x27No valid subscription\x27),/g' proxmoxlib.js && \ | |
! grep -q 'No valid subscription' proxmoxlib.js && \ | |
SYSTEMD_LOG_LEVEL=debug systemctl restart pveproxy.service 2>&1|egrep "Got result .* for job|Failed" && \ | |
echo "Success!" || echo "Error!" | |
# Switch apt to No-Subscription | |
sed -i 's&^deb https://enterprise.proxmox.com/debian/&# deb https://enterprise.proxmox.com/debian/&g' /etc/apt/sources.list.d/pve-enterprise.list | |
sed -i 's&^deb https://enterprise.proxmox.com/debian/&# deb https://enterprise.proxmox.com/debian/&g' /etc/apt/sources.list.d/ceph.list | |
grep -q bookworm /etc/apt/sources.list && { if ! grep -vE '^#|^$' /etc/apt/sources.list | grep -q pve-no-subscription; then { echo "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription" >> /etc/apt/sources.list; echo "Patched: /etc/apt/sources.list"; }; else echo "/etc/apt/sources.list already patched."; fi; } | |
apt update && apt upgrade -y && apt install -y vim mc htop tmux git | |
cd ~ | |
git clone https://github.com/tteck/Proxmox tteck-proxmox |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment