From 780a84e8bead3cbbdda09c479ab793081ecf9903 Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Tue, 8 Oct 2024 18:48:49 +0200 Subject: luci-app-clamav: Convert to JS Added functionality for clamav-milter and freshclam which are also in the package. Assumptions: clamd.log will always be in /tmp, so read permissions are granted for /tmp/*, in case the log file gets moved or renamed. Don't expose the LogFile* parameters to avoid logfile related location problems. Added entries to use syslogging for each component, and added a Log tab. Tested on 23.05.5 Signed-off-by: Paul Donald --- .../htdocs/luci-static/resources/view/clamav/clamav-log.js | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 applications/luci-app-clamav/htdocs/luci-static/resources/view/clamav/clamav-log.js (limited to 'applications/luci-app-clamav/htdocs/luci-static/resources/view/clamav/clamav-log.js') diff --git a/applications/luci-app-clamav/htdocs/luci-static/resources/view/clamav/clamav-log.js b/applications/luci-app-clamav/htdocs/luci-static/resources/view/clamav/clamav-log.js new file mode 100644 index 0000000000..409a8de36f --- /dev/null +++ b/applications/luci-app-clamav/htdocs/luci-static/resources/view/clamav/clamav-log.js @@ -0,0 +1,4 @@ +'use strict'; +'require tools.views as views'; + +return views.LogreadBox("clamav", "clamav"); -- cgit v1.2.3