Last active
May 10, 2024 15:25
-
-
Save karubits/624a6b4775cc09f85fdda479b501e7bd to your computer and use it in GitHub Desktop.
Remove proxmox subscription messege
This file contains hidden or 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
# ------------------------------------------------ | |
# Banner Subription Remover | |
# ------------------------------------------------ | |
# File: /usr/local/bin/pve-subscription-banner-remover.sh | |
#!/bin/bash | |
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 | |
# ------------------------------------------------ | |
# apt trigger for automatic application after upgrades | |
# ------------------------------------------------ | |
# File: /etc/apt/apt.conf.d/99custom | |
# Custom post invoke command to remove the proxmox subscription banner | |
DPkg::Post-Invoke {"sh /usr/local/bin/pve-subscription-banner-remover.sh";}; | |
# ------------------------------------------------ | |
# Example output for running apt upgrade | |
# ------------------------------------------------ | |
run-parts: executing /etc/kernel/postrm.d/zz-systemd-boot 6.5.11-7-pve /boot/vmlinuz-6.5.11-7-pve | |
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 6.5.11-7-pve /boot/vmlinuz-6.5.11-7-pve | |
Generating grub configuration file ... | |
Found linux image: /boot/vmlinuz-6.8.4-3-pve | |
Found initrd image: /boot/initrd.img-6.8.4-3-pve | |
Found linux image: /boot/vmlinuz-6.8.4-2-pve | |
Found initrd image: /boot/initrd.img-6.8.4-2-pve | |
Found linux image: /boot/vmlinuz-6.5.13-5-pve | |
Found initrd image: /boot/initrd.img-6.5.13-5-pve | |
Found memtest86+ 64bit EFI image: /boot/memtest86+x64.efi | |
Adding boot menu entry for UEFI Firmware Settings ... | |
done | |
Removing Proxmox Subscription... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment