diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-03-22 12:42:48 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-03-22 12:42:48 +0000 |
commit | fdf7d6618d9f46321c3aaffe6d177ceb30fc71cb (patch) | |
tree | 391d7ff79325b783a2d3838b294d0e8a038ee1f2 /modules/admin-full/luasrc/model/cbi | |
parent | 21aba9c483dab8ae4a261218a75bc632fc8143e7 (diff) |
modules/admin-full: notify crond after writing crontab (#559)
Diffstat (limited to 'modules/admin-full/luasrc/model/cbi')
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_system/crontab.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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 2ae5939c98..3e1b9d85d0 100644 --- 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> -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. @@ -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")) + luci.sys.call("/usr/bin/crontab %q" % cronfile) end end return true |