- remove needless Turris Omnia logread workaround, due to changes in
latest syslog-ng package
Signed-off-by: Dirk Brenken <dev@brenken.org>
end
function log_view()
- local content
-
- if nixio.fs.access("/var/log/messages") then
- content = util.trim(util.exec("grep -F 'banIP-' /var/log/messages"))
- else
- content = util.trim(util.exec("logread -e 'banIP-' 2>/dev/null"))
- end
+ local content = util.trim(util.exec("logread -e 'banIP-' 2>/dev/null")) or ""
if content == "" then
content = "No banIP related logs yet!"