small-packages/luci-app-wechatpush/root/etc/uci-defaults/luci-wechatpush
2026-05-10 09:48:30 +08:00

16 lines
351 B
Bash
Executable File

#!/bin/sh
function get_config_wechatpush(){
while [[ "$*" != "" ]]; do
eval ${1}='`uci get wechatpush.config.$1`' 2>/dev/null
uci del wechatpush.config.$1 2>/dev/null
uci commit wechatpush
shift
done
}
get_config_wechatpush "chat_id"
[ -n "$chat_id" ] && uci set wechatpush.config.tg_chat_id="$chat_id"
rm -rf /tmp/luci-* >/dev/null 2>&1