🌴 Sync 2024-05-28 00:26

This commit is contained in:
github-actions[bot] 2024-05-28 00:26:09 +08:00
parent 48c913eaab
commit a3d686c44d
2 changed files with 2 additions and 8 deletions

View File

@ -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

View File

@ -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