mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2025-12-06 11:36:48 +03:00
comfunc: Delete auto preset "abra-cadabra.com"
This commit is contained in:
@@ -147,10 +147,6 @@ function init_before_start
|
||||
local DAEMON_LOG_ENABLE=$1
|
||||
local HOSTLIST_FN="$ZAPRET_BASE/ipset/zapret-hosts-user.txt"
|
||||
[ ! -f "$HOSTLIST_FN" ] && touch "$HOSTLIST_FN"
|
||||
local HOSTLIST_SZ=$( wc -c < "$HOSTLIST_FN" )
|
||||
if [ "$HOSTLIST_SZ" -le 3 ]; then
|
||||
echo "abra-cadabra.com" > "$HOSTLIST_FN"
|
||||
fi
|
||||
chmod 644 $ZAPRET_BASE/ipset/*.txt
|
||||
chmod 666 $ZAPRET_BASE/ipset/*.log
|
||||
rm -f /tmp/zapret*.log
|
||||
|
||||
Reference in New Issue
Block a user