summaryrefslogtreecommitdiffstats
path: root/syslog-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-09-06 15:11:19 +0000
committerTed Trask <ttrask01@yahoo.com>2008-09-06 15:11:19 +0000
commit56a1ef7ebe6ae60bd4722f979ec50684221d94fb (patch)
treefb3a45b6e1550386d9981027ba68229861dc272d /syslog-model.lua
parenta02de2a0986b0b4b1f16a56d68488db0c32443b1 (diff)
downloadacf-alpine-baselayout-56a1ef7ebe6ae60bd4722f979ec50684221d94fb.tar.bz2
acf-alpine-baselayout-56a1ef7ebe6ae60bd4722f979ec50684221d94fb.tar.xz
Added dynamic network activity page to health controller.
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1452 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'syslog-model.lua')
-rw-r--r--syslog-model.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/syslog-model.lua b/syslog-model.lua
index 273cc27..25969fe 100644
--- a/syslog-model.lua
+++ b/syslog-model.lua
@@ -202,8 +202,7 @@ end
function update_filedetails (filedetails)
-- Validation before writing
- filedetails.value.filecontent.value = format.dostounix(filedetails.value.filecontent.value)
- filedetails.value.filecontent.value = filedetails.value.filecontent.value:gsub("\n+$", "")
+ filedetails.value.filecontent.value = string.gsub(format.dostounix(filedetails.value.filecontent.value), "\n+$", "")
local configcontent = getopts.getoptsfromfile(filedetails.value.filecontent.value, "", "SYSLOGD_OPTS", true) or {}
local config = makeconfig(configcontent)
local success, errtxt