modules/admin-full: fixup newlines when storing sysupgrade.conf
This commit is contained in:
parent
8b1167fb91
commit
f61147a82b
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue