Update auto_post_install.sh

This commit is contained in:
MacRimi 2025-08-03 23:12:32 +02:00 committed by GitHub
parent 87ce6cfa98
commit 57b4ade3be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -405,6 +405,7 @@ remove_subscription_banner() {
find /var/cache/pve-manager/ -name "*.js*" -delete 2>/dev/null || true
find /var/lib/pve-manager/ -name "*.js*" -delete 2>/dev/null || true
[[ -f "$APT_HOOK" ]] && rm -f "$APT_HOOK"
cat > "$APT_HOOK" << 'EOF'
DPkg::Post-Invoke {
"test -e /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && sed -i 's/res\\.data\\.status\\.toLowerCase() !== \\'NoMoreNagging\\'/false/g' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js || true";