From 0decbc0ab98c1b580d775f86c5985f882c94ee17 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Thu, 17 Apr 2008 08:57:08 +0000 Subject: Fetching path to logfile by reading the configfile instead of hardcode /var/log/messages git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@1027 ab2d0c66-481e-0410-8bed-d214d4d58bed --- shorewall-model.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shorewall-model.lua') 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() -- cgit v1.2.3