From 77a16af2c2c7d8ac0952602ac1dc7080dfe13e0c Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 4 Jan 2023 17:32:17 -0500 Subject: [PATCH] Update post-pbs-install.sh --- misc/post-pbs-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/post-pbs-install.sh b/misc/post-pbs-install.sh index 7b29e5f4..b96dbb93 100644 --- a/misc/post-pbs-install.sh +++ b/misc/post-pbs-install.sh @@ -94,7 +94,7 @@ fi read -r -p "Disable Subscription Nag? " prompt if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then msg_info "Disabling Subscription 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 + 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 msg_ok "Disabled Subscription Nag" fi