luci-app-passwall: fix passwall rules can not auto update

This commit is contained in:
CN_SZTL 2019-10-12 09:28:39 +08:00
parent 86886c75c5
commit b024ce3640
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -19,10 +19,10 @@ if [ -n "$update" ];then
[ -n "$(echo $update | grep "Pcap_Routing_update")" ] && Pcap_Routing_update=1
[ -n "$(echo $update | grep "Pcap_WhiteList_update")" ] && Pcap_WhiteList_update=1
else
gfwlist_update=uci get $CONFIG.@global_rules[0].gfwlist_update
chnroute_update=uci get $CONFIG.@global_rules[0].chnroute_update
Pcap_Routing_update=uci get $CONFIG.@global_rules[0].Pcap_Routing_update
Pcap_WhiteList_update=uci get $CONFIG.@global_rules[0].Pcap_WhiteList_update
gfwlist_update=`uci get $CONFIG.@global_rules[0].gfwlist_update`
chnroute_update=`uci get $CONFIG.@global_rules[0].chnroute_update`
Pcap_Routing_update=`uci get $CONFIG.@global_rules[0].Pcap_Routing_update`
Pcap_WhiteList_update=`uci get $CONFIG.@global_rules[0].Pcap_WhiteList_update`
fi
if [ "$gfwlist_update" == 0 -a "$chnroute_update" == 0 -a "$Pcap_Routing_update" == 0 -a "$Pcap_WhiteList_update" == 0 ];then