From a5375d0530f4d7f9c622a1f062cb3424eed43107 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 7 May 2008 17:37:37 +0000 Subject: Rewrote getopts.getoptsfromfile function to handle more complicated config files and removed getopts.getoptsfromfile_onperline function git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@1111 ab2d0c66-481e-0410-8bed-d214d4d58bed --- shorewall-model.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shorewall-model.lua') diff --git a/shorewall-model.lua b/shorewall-model.lua index 9a660a6..023ceed 100644 --- a/shorewall-model.lua +++ b/shorewall-model.lua @@ -307,8 +307,8 @@ end function getlogfile () local logfile = {} - local logfilepath = getopts.getoptsfromfile(configfile,"LOGFILE") - local cmdaction = "grep Shorewall " .. logfilepath.LOGFILE + local logfilepath = getopts.getoptsfromfile(configfile,"","LOGFILE") or "" + local cmdaction = "grep Shorewall " .. logfilepath local f, error = io.popen(cmdaction ,r) local checkresult = f:read("*a") f:close() -- cgit v1.2.3