Update remove-banner-pve8.sh

This commit is contained in:
MacRimi 2025-08-06 14:32:14 +02:00 committed by GitHub
parent 99ec64e852
commit 6e808ae35a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,17 +28,11 @@ remove_subscription_banner_pve8() {
return 1
fi
if ! whiptail --title "Proxmox Subscription Banner" \
--yesno "Do you want to remove the Proxmox subscription banner from the web interface?" 10 60; then
msg_warn "Banner removal cancelled by user."
return 1
fi
for f in /etc/apt/apt.conf.d/*nag*; do
[[ -e "$f" ]] && rm -f "$f"
done
msg_info "Applying patches to remove subscription banner..."
sed -i "s/res\.data\.status\.toLowerCase() !== 'NoMoreNagging'/false/g" "$JS_FILE"
sed -i "s/res\.data\.status\.toLowerCase() !== \"NoMoreNagging\"/false/g" "$JS_FILE"