mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-02 11:03:56 +08:00
update 2026-09-28 18:25:11
This commit is contained in:
1 parent
5b56b0238b
commit
5a3dad58e1
189 files changed
+59
-41779
No files matched your search
@@ -2102,14 +2102,9 @@ local function update_node(manual)
|
||||
|
||||
uci_save(true)
|
||||
|
||||
if arg[3] == "cron" then
|
||||
if not fs.access(api.LOCK_PREFIX .. ".lock") then
|
||||
luci.sys.call("touch %s_cron.lock" % api.LOCK_PREFIX)
|
||||
end
|
||||
end
|
||||
|
||||
local action = (arg[3] == "cron") and " cron" or ""
|
||||
if manual ~= 1 then
|
||||
luci.sys.call("/etc/init.d/passwall restart > /dev/null 2>&1 &")
|
||||
luci.sys.call("/etc/init.d/passwall restart%s > /dev/null 2>&1 &" % action)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user