modules/admin-full: fixup newlines when storing sysupgrade.conf

This commit is contained in:
Jo-Philipp Wich 2011-01-10 15:48:49 +00:00
parent 8b1167fb91
commit f61147a82b

View file

@ -100,6 +100,7 @@ c.cfgvalue = function(self, section)
end
c.write = function(self, section, value)
value = value:gsub("\r\n?", "\n")
return nixio.fs.writefile("/etc/sysupgrade.conf", value)
end