From b9d44a7a738bd79136f49cc1e73771e5ed88b5bb Mon Sep 17 00:00:00 2001 From: sthope Date: Sat, 29 Jan 2022 15:04:42 +0000 Subject: [PATCH] Add 'proxmox_remove_nag.sh' --- proxmox_remove_nag.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 proxmox_remove_nag.sh diff --git a/proxmox_remove_nag.sh b/proxmox_remove_nag.sh new file mode 100644 index 0000000..cbe6ff6 --- /dev/null +++ b/proxmox_remove_nag.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# ___ _ _ _ __ +# / __|| |_ | |_ ___ | '_ \ ___ +# \__ \| _|| \ / _ \| .__// -_) +# |___/ \__||_||_|\___/|_| \___| + +# Remove nag +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 + +sed -i.bak 's/NotFound/Active/g' /usr/share/perl5/PVE/API2/Subscription.pm + +systemctl restart pveproxy.service \ No newline at end of file