mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-10-30 09:35:13 +08:00
update 2026-07-12 21:07:28
This commit is contained in:
1 parent
24c2eb6e4f
commit
192d5e4fd9
41 files changed
+779
-611
No files matched your search
@@ -103,6 +103,7 @@ function index()
|
||||
for com, _ in pairs(coms) do
|
||||
entry({"admin", "services", appname, "check_" .. com}, call("com_check", com)).leaf = true
|
||||
entry({"admin", "services", appname, "update_" .. com}, call("com_update", com)).leaf = true
|
||||
entry({"admin", "services", appname, "version_" .. com}, call("com_version", com)).leaf = true
|
||||
end
|
||||
|
||||
--[[Backup]]
|
||||
@@ -699,6 +700,11 @@ function com_update(comname)
|
||||
http_write_json(json)
|
||||
end
|
||||
|
||||
function com_version(comname)
|
||||
local version = api.get_app_version(comname)
|
||||
http_write_json_ok(version)
|
||||
end
|
||||
|
||||
local backup_files = {
|
||||
"/etc/config/passwall2",
|
||||
"/etc/config/passwall2_server",
|
||||
|
||||
Reference in new issue
Block a user