summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shorewall-model.lua3
-rw-r--r--shorewall-status-html.lsp2
2 files changed, 3 insertions, 2 deletions
diff --git a/shorewall-model.lua b/shorewall-model.lua
index 4acb9da..9a660a6 100644
--- a/shorewall-model.lua
+++ b/shorewall-model.lua
@@ -307,7 +307,8 @@ end
function getlogfile ()
local logfile = {}
- local cmdaction = "grep Shorewall /var/log/messages"
+ local logfilepath = getopts.getoptsfromfile(configfile,"LOGFILE")
+ local cmdaction = "grep Shorewall " .. logfilepath.LOGFILE
local f, error = io.popen(cmdaction ,r)
local checkresult = f:read("*a")
f:close()
diff --git a/shorewall-status-html.lsp b/shorewall-status-html.lsp
index 7055966..9122797 100644
--- a/shorewall-status-html.lsp
+++ b/shorewall-status-html.lsp
@@ -4,7 +4,7 @@ require("viewfunctions")
<?
--[[ DEBUG INFORMATION
io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>")
-io.write(html.cfe_unpack(view))
+io.write(html.cfe_unpack(form))
io.write("</span>")
--]]
?>