summaryrefslogtreecommitdiffstats
path: root/shorewall-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'shorewall-model.lua')
-rw-r--r--shorewall-model.lua3
1 files changed, 2 insertions, 1 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()