#!/bin/sh # source: https://github.com/community-scripts/ProxmoxVE/blob/main/tools/pve/post-pve-install.sh # Commit c464b95 WEB_JS=/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js if [ -s "$WEB_JS" ] && ! grep -q NoMoreNagging "$WEB_JS"; then echo "Patching Web UI nag..." sed -i \ -e "/data\.status/ s/!//" \ -e "/data\.status/ s/active/NoMoreNagging/" \ "$WEB_JS" fi MOBILE_TPL=/usr/share/pve-yew-mobile-gui/index.html.tpl MARKER="" if [ -f "$MOBILE_TPL" ] && ! grep -q "$MARKER" "$MOBILE_TPL"; then echo "Patching Mobile UI nag..." cat <<'EOF' >> "$MOBILE_TPL" EOF fi