projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modules/admin-full: notify crond after writing crontab (#559)
[project/luci.git]
/
modules
/
admin-full
/
luasrc
/
model
/
cbi
/
admin_system
/
crontab.lua
diff --git
a/modules/admin-full/luasrc/model/cbi/admin_system/crontab.lua
b/modules/admin-full/luasrc/model/cbi/admin_system/crontab.lua
index
2ae5939
..
3e1b9d8
100644
(file)
--- a/
modules/admin-full/luasrc/model/cbi/admin_system/crontab.lua
+++ b/
modules/admin-full/luasrc/model/cbi/admin_system/crontab.lua
@@
-2,7
+2,7
@@
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
-Copyright 2008
Jo-Philipp Wich <xm@leipzig.freifunk.net
>
+Copyright 2008
-2013 Jo-Philipp Wich <xm@subsignal.org
>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@
-29,6
+29,7
@@
function f.handle(self, state, data)
if state == FORM_VALID then
if data.crons then
fs.writefile(cronfile, data.crons:gsub("\r\n", "\n"))
if state == FORM_VALID then
if data.crons then
fs.writefile(cronfile, data.crons:gsub("\r\n", "\n"))
+ luci.sys.call("/usr/bin/crontab %q" % cronfile)
end
end
return true
end
end
return true