mirror of
https://github.com/kenzok8/small-package
synced 2025-01-08 13:27:36 +08:00
update 2022-06-22 20:21:00
This commit is contained in:
parent
c1dda9d865
commit
9d9218b68b
@ -10,11 +10,11 @@ include $(TOPDIR)/rules.mk
|
||||
PKG_ARCH_DDNSTO:=$(ARCH)
|
||||
|
||||
PKG_NAME:=ddnsto
|
||||
PKG_VERSION:=1.5.0
|
||||
PKG_RELEASE:=$(PKG_ARCH_DDNSTO)-2
|
||||
PKG_VERSION:=1.5.1
|
||||
PKG_RELEASE:=$(PKG_ARCH_DDNSTO)-3
|
||||
PKG_SOURCE:=$(PKG_NAME)-binary-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://fw.koolcenter.com/binary/ddnsto/
|
||||
PKG_HASH:=5e7c0a3669bf5a8fa100e97afcb4bbc713ee39edab92a8ff2e1373b96114c285
|
||||
PKG_HASH:=a73502a5ffb13cca36e9e0a3a40b88ec261e5dbc48fc2c86c3e32b05515752dc
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-binary-$(PKG_VERSION)
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
config ddnsto
|
||||
option 'token' ''
|
||||
option 'enabled' '0'
|
||||
option 'feat_port' '3030'
|
||||
option 'feat_port' '3033'
|
||||
option 'feat_username' ''
|
||||
option 'feat_password' ''
|
||||
option 'feat_enabled' '0'
|
||||
|
@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
|
||||
LUCI_TITLE:=LuCI support for ddnsto
|
||||
LUCI_DEPENDS:=+ddnsto
|
||||
LUCI_PKGARCH:=all
|
||||
PKG_VERSION:=1.5.0
|
||||
PKG_VERSION:=1.5.1
|
||||
PKG_RELEASE:=1
|
||||
|
||||
include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
@ -55,12 +55,6 @@ local function get_data()
|
||||
feat_port = tonumber(uci:get_first("ddnsto", "ddnsto", "feat_port")),
|
||||
index = (tonumber(uci:get_first("ddnsto", "ddnsto", "index")) or 0),
|
||||
token = uci:get_first("ddnsto", "ddnsto", "token")
|
||||
-- feat_disk_path_selected = "/mnt/sda1",
|
||||
-- feat_enabled = 0,
|
||||
-- feat_password = "",
|
||||
-- feat_port = 3030,
|
||||
-- feat_username = "username",
|
||||
-- index = 0,
|
||||
}
|
||||
return data
|
||||
end
|
||||
@ -136,7 +130,7 @@ local function status_container()
|
||||
},
|
||||
{
|
||||
key = "webdav地址",
|
||||
value = webdav_url
|
||||
value = "<a href=\""..webdav_url.."\" target=\"_blank\">"..webdav_url.."</a>"
|
||||
},
|
||||
{
|
||||
key = "远程开机服务",
|
||||
@ -315,7 +309,7 @@ function ddnsto_submit()
|
||||
local error = ""
|
||||
local scope = ""
|
||||
local success = 0
|
||||
local log = "正在验证参数...<br />"
|
||||
local log = "正在验证参数...\n"
|
||||
|
||||
local jsonc = require "luci.jsonc"
|
||||
local json_parse = jsonc.parse
|
||||
@ -425,20 +419,20 @@ function ddnsto_submit()
|
||||
|
||||
|
||||
if success == 0 then
|
||||
log = log .. "正在保存参数...<br />"
|
||||
log = log .. "保存成功!<br />"
|
||||
log = log .. "请关闭对话框<br />"
|
||||
log = log .. "正在保存参数...\n"
|
||||
log = log .. "保存成功!\n"
|
||||
log = log .. "请关闭对话框\n"
|
||||
ddnsto_writelog(log)
|
||||
|
||||
luci.util.exec("/etc/init.d/ddnsto restart")
|
||||
luci.util.exec("sleep 1")
|
||||
else
|
||||
log = log .. "参数错误:<br />"
|
||||
log = log .. "<br />"
|
||||
log = log .. error .."<br />"
|
||||
log = log .. "<br />"
|
||||
log = log .. "保存失败!<br />"
|
||||
log = log .. "请关闭对话框<br />"
|
||||
log = log .. "参数错误:\n"
|
||||
log = log .. "\n"
|
||||
log = log .. error .."\n"
|
||||
log = log .. "\n"
|
||||
log = log .. "保存失败!\n"
|
||||
log = log .. "请关闭对话框\n"
|
||||
ddnsto_writelog(log)
|
||||
luci.util.exec("sleep 1")
|
||||
end
|
||||
@ -462,7 +456,7 @@ function ddnsto_log()
|
||||
local fs = require "nixio.fs"
|
||||
local data = fs.readfile("/tmp/ddnsto/ddnsto-luci.log")
|
||||
|
||||
http.prepare_content("text/plain")
|
||||
http.prepare_content("text/plain;charset=utf-8")
|
||||
http.write(data)
|
||||
end
|
||||
|
||||
|
@ -5,6 +5,6 @@
|
||||
</script>
|
||||
<div id="app">
|
||||
</div>
|
||||
<script type="module" crossorigin src="/luci-static/ddnsto/index.js"></script>
|
||||
<link rel="stylesheet" href="/luci-static/ddnsto/style.css">
|
||||
<script type="module" crossorigin src="/luci-static/ddnsto/index.js?v=<%=math.random(1,100000)%>"></script>
|
||||
<link rel="stylesheet" href="/luci-static/ddnsto/style.css?v=<%=math.random(1,100000)%>">
|
||||
<%+footer%>
|
Loading…
Reference in New Issue
Block a user