summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mysql-controller.lua4
l---------[-rw-r--r--]mysql-logfile-html.lsp7
-rw-r--r--mysql-model.lua7
3 files changed, 12 insertions, 6 deletions
diff --git a/mysql-controller.lua b/mysql-controller.lua
index c504167..5d26d6a 100644
--- a/mysql-controller.lua
+++ b/mysql-controller.lua
@@ -18,6 +18,10 @@ function mymodule.expert(self)
return self.handle_form(self, self.model.getfiledetails, self.model.updatefiledetails, self.clientdata, "Save", "Edit MariaDB File", "File Saved")
end
+function mymodule.logfile(self)
+ return self.model.get_logfile(self, self.clientdata)
+end
+
-- Use acf-db to allow editing of the database
dbcontrollerfunctions = require("dbcontrollerfunctions")
for n,f in pairs(dbcontrollerfunctions) do
diff --git a/mysql-logfile-html.lsp b/mysql-logfile-html.lsp
index 2a820c4..ac8854f 100644..120000
--- a/mysql-logfile-html.lsp
+++ b/mysql-logfile-html.lsp
@@ -1,6 +1 @@
-<% local data, viewlibrary = ...
-%>
-
-<% if viewlibrary and viewlibrary.dispatch_component then
- viewlibrary.dispatch_component("alpine-baselayout/logfiles/view", {filename="/var/log/messages", grep="mariadb"})
-end %>
+../logfile-html.lsp \ No newline at end of file
diff --git a/mysql-model.lua b/mysql-model.lua
index de867f9..1db6a71 100644
--- a/mysql-model.lua
+++ b/mysql-model.lua
@@ -49,6 +49,13 @@ function mymodule.updatefiledetails(self, filedetails)
return modelfunctions.setfiledetails(self, filedetails, {conffile})
end
+function mymodule.get_logfile(self, clientdata)
+ local retval = cfe({ type="group", value={}, label="Log File Configuration" })
+ retval.value.facility = cfe({value="daemon", label="Syslog Facility"})
+ retval.value.grep = cfe({ value="mariadb", label="Grep" })
+ return retval
+end
+
for n,f in pairs(dbmodelfunctions) do
mymodule[n] = function(...)
return f(determineconnection, ...)