summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-clamav/htdocs/luci-static/resources/view/clamav/clamav-log.js
diff options
context:
space:
mode:
authorPaul Donald <newtwen+github@gmail.com>2024-10-08 18:48:49 +0200
committerPaul Donald <newtwen+github@gmail.com>2024-10-09 00:40:21 +0200
commit780a84e8bead3cbbdda09c479ab793081ecf9903 (patch)
tree113630761cb74c4f3b9cb3172293273bb774ce1d /applications/luci-app-clamav/htdocs/luci-static/resources/view/clamav/clamav-log.js
parentd35b658d8a7d7a8f0872e46c5182b05de4500495 (diff)
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 <newtwen+github@gmail.com>
Diffstat (limited to 'applications/luci-app-clamav/htdocs/luci-static/resources/view/clamav/clamav-log.js')
-rw-r--r--applications/luci-app-clamav/htdocs/luci-static/resources/view/clamav/clamav-log.js4
1 files changed, 4 insertions, 0 deletions
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");