debug
This commit is contained in:
tty228 2023-11-03 01:42:24 +08:00
parent 3417947570
commit c98cdbcb43
2 changed files with 7 additions and 5 deletions

View File

@ -1,8 +1,8 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-wechatpush
PKG_VERSION:=3.4.0
PKG_RELEASE:=12
PKG_VERSION:=3.4.1
PKG_RELEASE:=
PKG_MAINTAINER:=tty228 <tty228@yeah.net>
PKG_CONFIG_DEPENDS:= \

View File

@ -103,6 +103,11 @@ get_config_wechatpush "gateway_info_enable" "gateway_sleeptime"
[ -n "$gateway_info_enable" ] && [ "$" -eq "1" ] && uci add_list wechatpush.config.device_info_helper='gateway_info'
[ -n "$gateway_sleeptime" ] && uci set wechatpush.config.device_info_helper_sleeptime="$gateway_sleeptime"
cpu_threshold_duration=$(uci get wechatpush.config.cpu_threshold_duration 2>/dev/null)
cpu_notification_delay=$(uci get wechatpush.config.cpu_notification_delay 2>/dev/null)
[ -z "$cpu_threshold_duration" ] && uci set wechatpush.config.cpu_threshold_duration='300'
[ -z "$cpu_notification_delay" ] && uci set wechatpush.config.cpu_notification_delay='3600'
serverchan_to_wechatpush_list "device_notification"
serverchan_to_wechatpush_list "cpu_notification"
serverchan_to_wechatpush_list "login_notification"
@ -168,9 +173,6 @@ serverchan_to_wechatpush_get \
"unattended_enable" "zerotier_helper" "unattended_only_on_disturb_time" "unattended_device_aliases" "network_disconnect_event" "unattended_autoreboot_mode" "autoreboot_system_uptime" "autoreboot_network_uptime" \
"gateway_info_enable" "gateway_host_url" "gateway_info_url" "gateway_logout_url" "gateway_username_id" "gateway_password_id" "gateway_username" "gateway_password" "gateway_sleeptime"
uci set wechatpush.config.cpu_threshold_duration='300'
uci set wechatpush.config.cpu_notification_delay='3600'
uci commit wechatpush
rm -rf "$serverchan_config" 2>/dev/null
dir="/tmp/wechatpush/" && mkdir -p ${dir}