Merge pull request #674 from feckert/cron_bugfix
luci-mod-admin-full: allow writing empty crontab config
This commit is contained in:
commit
4a211573d9
1 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,8 @@ function f.handle(self, state, data)
|
|||
if data.crons then
|
||||
fs.writefile(cronfile, data.crons:gsub("\r\n", "\n"))
|
||||
luci.sys.call("/usr/bin/crontab %q" % cronfile)
|
||||
else
|
||||
fs.writefile(cronfile, "")
|
||||
end
|
||||
end
|
||||
return true
|
||||
|
|
Loading…
Reference in a new issue