Commit 58e27d2c authored by Ted Trask's avatar Ted Trask

Modify logfile to use common view

parent 10b78269
......@@ -18,4 +18,8 @@ function mymodule.expert(self)
return self.handle_form(self, self.model.get_filedetails, self.model.update_filedetails, self.clientdata, "Save", "Edit ClamSMTP Config", "Configuration Set")
end
function mymodule.logfile(self)
return self.model.get_logfile(self, self.clientdata)
end
return mymodule
<% local data, viewlibrary = ...
%>
<% if viewlibrary and viewlibrary.dispatch_component then
viewlibrary.dispatch_component("alpine-baselayout/logfiles/view", {filename="/var/log/messages", grep="clamsmtp"})
end %>
../logfile-html.lsp
\ No newline at end of file
......@@ -10,8 +10,6 @@ local configfile = "/etc/clamsmtpd.conf"
local processname = "clamsmtpd"
local packagename = "clamsmtp"
local path = "PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin "
-- ################################################################################
-- LOCAL FUNCTIONS
......@@ -42,4 +40,11 @@ function mymodule.update_filedetails(self, filedetails)
return modelfunctions.setfiledetails(self, filedetails, {configfile})
end
function mymodule.get_logfile(self, clientdata)
local retval = cfe({ type="group", value={}, label="Log File Configuration" })
retval.value.facility = cfe({value="mail", label="Syslog Facility"})
retval.value.grep = cfe({ value="clamsmtp", label="Grep" })
return retval
end
return mymodule
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment