parent
5ef797d8f7
commit
9be93ec1ae
@ -466,11 +466,8 @@ luci.sys.call("uci commit " .. name)
|
||||
|
||||
if reboot == 1 then
|
||||
if arg3 == "cron" then
|
||||
local f = io.open("/var/lock/" .. name .. ".lock", "r")
|
||||
if f == nil then
|
||||
if not nixio.fs.access("/var/lock/" .. name .. ".lock") then
|
||||
luci.sys.call("touch /tmp/lock/" .. name .. "_cron.lock")
|
||||
else
|
||||
f:close()
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1166,11 +1166,8 @@ local function update_node(manual)
|
||||
end
|
||||
|
||||
if arg[3] == "cron" then
|
||||
local f = io.open("/var/lock/" .. appname .. ".lock", "r")
|
||||
if f == nil then
|
||||
if not nixio.fs.access("/var/lock/" .. appname .. ".lock") then
|
||||
luci.sys.call("touch /tmp/lock/" .. appname .. "_cron.lock")
|
||||
else
|
||||
f:close()
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user