From 751dda88b95760519cb1e8ef7f006013b9a6586d Mon Sep 17 00:00:00 2001 From: Beginner <70857188+Beginner-Go@users.noreply.github.com> Date: Sat, 18 Sep 2021 00:46:57 +0800 Subject: [PATCH] luci-app-pushbot: update to 3.55-16 (#7869) Signed-off-by: Beginner-Go <70857188+Beginner-Go@users.noreply.github.com> --- package/lean/luci-app-pushbot/Makefile | 4 ++-- .../luasrc/model/cbi/pushbot/client.lua | 2 +- .../luasrc/model/cbi/pushbot/log.lua | 2 +- .../view/pushbot/{log.htm => pushbot_log.htm} | 0 .../luci-app-pushbot/root/etc/config/pushbot | 1 - .../root/usr/bin/pushbot/api/ipv4.list | 2 +- .../root/usr/bin/pushbot/api/ipv6.list | 2 +- .../root/usr/bin/pushbot/pushbot | 16 ++++++++-------- .../usr/share/rpcd/acl.d/luci-app-pushbot.json | 0 9 files changed, 14 insertions(+), 15 deletions(-) rename package/lean/luci-app-pushbot/luasrc/view/pushbot/{log.htm => pushbot_log.htm} (100%) mode change 100755 => 100644 package/lean/luci-app-pushbot/root/usr/share/rpcd/acl.d/luci-app-pushbot.json diff --git a/package/lean/luci-app-pushbot/Makefile b/package/lean/luci-app-pushbot/Makefile index 09d271ff0..2cb12a744 100644 --- a/package/lean/luci-app-pushbot/Makefile +++ b/package/lean/luci-app-pushbot/Makefile @@ -2,9 +2,9 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-pushbot PKG_VERSION:=3.55 -PKG_RELEASE:=15 +PKG_RELEASE:=16 -PKG_MAINTAINER:=tty228 zzsj0928 +PKG_MAINTAINER:=tty228 zzsj0928 LUCI_TITLE:=LuCI support for Pushbot LUCI_PKGARCH:=all diff --git a/package/lean/luci-app-pushbot/luasrc/model/cbi/pushbot/client.lua b/package/lean/luci-app-pushbot/luasrc/model/cbi/pushbot/client.lua index 41bcb90aa..dbb80f2bb 100644 --- a/package/lean/luci-app-pushbot/luasrc/model/cbi/pushbot/client.lua +++ b/package/lean/luci-app-pushbot/luasrc/model/cbi/pushbot/client.lua @@ -2,5 +2,5 @@ f = SimpleForm("pushbot") luci.sys.call("/usr/bin/pushbot/pushbot client") f.reset = false f.submit = false -f:append(Template("pushbot/client")) +f:append(Template("pushbot/pushbot_client")) return f diff --git a/package/lean/luci-app-pushbot/luasrc/model/cbi/pushbot/log.lua b/package/lean/luci-app-pushbot/luasrc/model/cbi/pushbot/log.lua index ba9bb3252..0b73ae08d 100644 --- a/package/lean/luci-app-pushbot/luasrc/model/cbi/pushbot/log.lua +++ b/package/lean/luci-app-pushbot/luasrc/model/cbi/pushbot/log.lua @@ -1,5 +1,5 @@ f = SimpleForm("pushbot") f.reset = false f.submit = false -f:append(Template("pushbot/log")) +f:append(Template("pushbot/pushbot_log")) return f diff --git a/package/lean/luci-app-pushbot/luasrc/view/pushbot/log.htm b/package/lean/luci-app-pushbot/luasrc/view/pushbot/pushbot_log.htm similarity index 100% rename from package/lean/luci-app-pushbot/luasrc/view/pushbot/log.htm rename to package/lean/luci-app-pushbot/luasrc/view/pushbot/pushbot_log.htm diff --git a/package/lean/luci-app-pushbot/root/etc/config/pushbot b/package/lean/luci-app-pushbot/root/etc/config/pushbot index d70af26d3..89af5a7a2 100644 --- a/package/lean/luci-app-pushbot/root/etc/config/pushbot +++ b/package/lean/luci-app-pushbot/root/etc/config/pushbot @@ -8,4 +8,3 @@ config pushbot 'pushbot' option cpuload_enable '1' option cpuload '2' option temperature_enable '0' - diff --git a/package/lean/luci-app-pushbot/root/usr/bin/pushbot/api/ipv4.list b/package/lean/luci-app-pushbot/root/usr/bin/pushbot/api/ipv4.list index 8e1ba0aab..72081532b 100644 --- a/package/lean/luci-app-pushbot/root/usr/bin/pushbot/api/ipv4.list +++ b/package/lean/luci-app-pushbot/root/usr/bin/pushbot/api/ipv4.list @@ -3,4 +3,4 @@ ipv4.ddnspod.com ifcfg.cn speed.neu.edu.cn/getIP.php ddns.oray.com/checkip -www.net.cn/static/customercare/yourip.asp \ No newline at end of file +www.net.cn/static/customercare/yourip.asp diff --git a/package/lean/luci-app-pushbot/root/usr/bin/pushbot/api/ipv6.list b/package/lean/luci-app-pushbot/root/usr/bin/pushbot/api/ipv6.list index 371ac67c4..5f1ca230c 100644 --- a/package/lean/luci-app-pushbot/root/usr/bin/pushbot/api/ipv6.list +++ b/package/lean/luci-app-pushbot/root/usr/bin/pushbot/api/ipv6.list @@ -2,4 +2,4 @@ ip.sb ipv6.ddnspod.com api-ipv6.ip.sb/ip speed.neu6.edu.cn/getIP.php -v6.myip.la/json \ No newline at end of file +v6.myip.la/json diff --git a/package/lean/luci-app-pushbot/root/usr/bin/pushbot/pushbot b/package/lean/luci-app-pushbot/root/usr/bin/pushbot/pushbot index 772189bdb..3a0ae92ab 100755 --- a/package/lean/luci-app-pushbot/root/usr/bin/pushbot/pushbot +++ b/package/lean/luci-app-pushbot/root/usr/bin/pushbot/pushbot @@ -519,7 +519,7 @@ function get_client(){ local js_str="${js_str}
<%:${tmp_uptime}%>
" done < ${dir}ipAddress fi -cat>/usr/lib/lua/luci/view/pushbot/client.htm</usr/lib/lua/luci/view/pushbot/pushbot_client.htm<<%:在线设备列表%>
<%:客户端名%>
<%:MAC%>
<%:IP%>
<%:总计流量%>
<%:在线时间%>
$js_str
@@ -997,7 +997,7 @@ function login_send(){ content="${content}${str_splitline}${str_tab}时间:${str_space}${str_space}${str_space}${str_space}${str_space}${web_login_time}${str_linefeed}${str_tab}设备 IP: ${str_space}${str_space}${str_space}${str_space}${login_ip}${content_mode}" else title="设备状态变化" - content="${content}${str_splitline}${str_title_start}${font_green} 登录信息${font_end}${str_title_end}${str_linefeed}${str_tab}时间:${str_space}${str_space}${str_space}${str_space}${str_space}${web_login_time}${str_linefeed}${str_tab}设备 IP: ${str_space}${str_space}${str_space}${str_space}${login_ip}${content_mode}" + content="${content}${str_splitline}${str_title_start}${font_green} 登录成功来源${font_end}${str_title_end}${str_linefeed}${str_tab}时间:${str_space}${str_space}${str_space}${str_space}${str_space}${web_login_time}${str_linefeed}${str_tab}设备 IP: ${str_space}${str_space}${str_space}${str_space}${login_ip}${content_mode}" fi fi echo "`date "+%Y-%m-%d %H:%M:%S"` ${disturb_text}设备 ${login_ip} 通过 web ${web_login_mode} 登录了路由器 " >> ${logfile} @@ -1015,13 +1015,13 @@ function login_send(){ if [ ! -z "$ssh_logged" ] && [ "$ssh_logged" -eq "1" ]; then if [ -z "$title" ]; then title="${login_ip} 通过 SSH 登录了路由器" - content="${content}${str_splitline}${str_title_start}${font_green} 登录信息${font_end}${str_title_end}${str_linefeed}${str_tab}时间:${str_space}${str_space}${str_space}${str_space}${str_space}${ssh_login_time}${str_linefeed}${str_tab}设备 IP: ${str_space}${str_space}${str_space}${str_space}${login_ip}${content_mode}" + content="${content}${str_splitline}${str_title_start}${font_green} 登录成功来源${font_end}${str_title_end}${str_linefeed}${str_tab}时间:${str_space}${str_space}${str_space}${str_space}${str_space}${ssh_login_time}${str_linefeed}${str_tab}设备 IP: ${str_space}${str_space}${str_space}${str_space}${login_ip}${content_mode}" elif ( echo "$title"|grep -q "登录了路由器" ); then title="${login_ip} ${title}" content="${content}${str_splitline}${str_tab}时间:${str_space}${str_space}${str_space}${str_space}${str_space}${ssh_login_time}${str_linefeed}${str_tab}设备 IP: ${str_space}${str_space}${str_space}${str_space}${login_ip}${content_mode}" else title="设备状态变化" - content="${content}${str_splitline}${str_title_start}${font_green} 登录信息${str_title_end}${str_linefeed}${str_tab}时间:${str_space}${str_space}${str_space}${str_space}${str_space}${ssh_login_time}${str_linefeed}${str_tab}设备 IP: ${str_space}${str_space}${str_space}${str_space}${login_ip}${content_mode}" + content="${content}${str_splitline}${str_title_start}${font_green} 登录成功来源${str_title_end}${str_linefeed}${str_tab}时间:${str_space}${str_space}${str_space}${str_space}${str_space}${ssh_login_time}${str_linefeed}${str_tab}设备 IP: ${str_space}${str_space}${str_space}${str_space}${login_ip}${content_mode}" fi fi echo "`date "+%Y-%m-%d %H:%M:%S"` 【info】设备 ${login_ip} 通过 SSH ${ssh_login_mode} 登录了路由器 " >> ${logfile} @@ -1038,13 +1038,13 @@ function login_send(){ if [ ! -z "$web_login_failed" ] && [ "$web_login_failed" -eq "1" ]; then if [ -z "$title" ]; then title="${login_ip} 通过 Web 频繁尝试登录" - content="${content}${str_splitline}${str_title_start}${font_red} 登录信息${font_end}${str_title_end}${str_linefeed}${str_tab}设备 IP: ${str_space}${str_space}${str_space}${str_space}${login_ip}" + content="${content}${str_splitline}${str_title_start}${font_red} 登录失败来源${font_end}${str_title_end}${str_linefeed}${str_tab}设备 IP: ${str_space}${str_space}${str_space}${str_space}${login_ip}" elif ( echo "$title"|grep -q "频繁尝试登录" ); then title="${login_ip} ${title}" content="${content}${str_splitline}${str_tab}设备 IP: ${str_space}${str_space}${str_space}${str_space}${login_ip}" else title="设备状态变化" - content="${content}${str_splitline}${str_title_start}${font_red} 登录信息${font_end}${str_title_end}${str_linefeed}${str_tab}设备 IP: ${str_space}${str_space}${str_space}${str_space}${login_ip}" + content="${content}${str_splitline}${str_title_start}${font_red} 登录失败来源${font_end}${str_title_end}${str_linefeed}${str_tab}设备 IP: ${str_space}${str_space}${str_space}${str_space}${login_ip}" fi fi sed -i "/^${login_ip}$/d" ${dir}web_failed @@ -1063,13 +1063,13 @@ function login_send(){ if [ ! -z "$ssh_login_failed" ] && [ "$ssh_login_failed" -eq "1" ]; then if [ -z "$title" ]; then title="${login_ip} 通过 SSH 频繁尝试登录" - content="${content}${str_splitline}${str_title_start}${font_red} 登录信息${font_end}${str_title_end}${str_linefeed}${str_tab}设备 IP: ${str_space}${str_space}${str_space}${str_space}${login_ip}" + content="${content}${str_splitline}${str_title_start}${font_red} 登录失败来源${font_end}${str_title_end}${str_linefeed}${str_tab}设备 IP: ${str_space}${str_space}${str_space}${str_space}${login_ip}" elif ( echo "$title"|grep -q "频繁尝试登录" ); then title="${login_ip} ${title}" content="${content}${str_splitline}${str_tab}设备 IP: ${str_space}${str_space}${str_space}${str_space}${login_ip}" else title="设备状态变化" - content="${content}${str_splitline}${str_title_start}${font_red} 登录信息${font_end}${str_title_end}${str_linefeed}${str_tab}设备 IP: ${str_space}${str_space}${str_space}${str_space}${login_ip}" + content="${content}${str_splitline}${str_title_start}${font_red} 登录失败来源${font_end}${str_title_end}${str_linefeed}${str_tab}设备 IP: ${str_space}${str_space}${str_space}${str_space}${login_ip}" fi fi sed -i "/^${login_ip}$/d" ${dir}ssh_failed diff --git a/package/lean/luci-app-pushbot/root/usr/share/rpcd/acl.d/luci-app-pushbot.json b/package/lean/luci-app-pushbot/root/usr/share/rpcd/acl.d/luci-app-pushbot.json old mode 100755 new mode 100644