]> ###2026.11.04 - Trivy Scan is now CVE Lens. Updating installs CVE Lens, copies your settings, schedule and ignore lists, moves the data folder (databases and last report) without downloading it again, and removes this entry about a minute later. See https://github.com/luuvasara/unraid-cve-lens for details. if [ -f /boot/config/plugins/unraid-cve-lens.plg ]; then echo "CVE Lens is already installed." else echo "Installing CVE Lens, the successor of Trivy Scan ..." if ! plugin install &newURL;; then echo "ERROR: CVE Lens could not be installed (see above). Trivy Scan was left unchanged; try again later." exit 1 fi fi # The plugin manager registers this file as installed after the script ends, which would put the old entry back. # Remove it once that is done, then let CVE Lens clean up what is left of the old plugin (old flash folder, Unraid's # "previously installed" record), which it only does once the old plugin is no longer installed. nohup setsid bash -c 'sleep 45; plugin remove unraid-trivy-scan.plg; /usr/local/emhttp/plugins/unraid-cve-lens/scripts/migrate-from-trivy-scan all >>/var/log/unraid-cve-lens.log 2>&1' >/dev/null 2>&1 </dev/null & echo "Trivy Scan will be removed from the plugin list in about a minute; CVE Lens is its replacement." exit 0 for p in /var/log/packages/unraid-trivy-scan-*; do [ -e "$p" ] && removepkg "$(basename "$p")" >/dev/null 2>&1 done rm -rf /usr/local/emhttp/plugins/unraid-trivy-scan /var/run/unraid-trivy-scan rm -f /var/log/unraid-trivy-scan.log /boot/config/plugins/unraid-trivy-scan/unraid-trivy-scan-*-x86_64-1.txz rm -f /boot/config/plugins/unraid-trivy-scan/unraid-trivy-scan.cron [ -x /usr/local/sbin/update_cron ] && /usr/local/sbin/update_cron echo "Trivy Scan removed. CVE Lens keeps working with the settings and data that were moved to it." exit 0