Files
proxmox/pve/remove-pve-subscription-nag.sh

6 lines
589 B
Bash

#!/bin/bash
# https://github.com/tteck/Proxmox/discussions/2095#discussioncomment-7658308
# bash -c "$(wget -qLO - https://git.hibbit.net/rogier/proxmox/raw/branch/main/remove-pve-subscription-nag.sh)"
echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/.*data\.status.*{/{s/\!//;s/active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" >/etc/apt/apt.conf.d/no-nag-script
apt --reinstall install proxmox-widget-toolkit &>/dev/null