mirror of
https://github.com/milleruk/adguard-filter-list.git
synced 2026-06-03 20:31:39 +00:00
Blocklist update 2025-08-11 21:44:30
This commit is contained in:
10
script.sh
10
script.sh
@@ -2,7 +2,7 @@
|
||||
|
||||
|
||||
# Navigate to blocklist directory
|
||||
cd /opt/data || { echo "Directory not found: ./data/blocklist/"; exit 1; }
|
||||
cd /home/adguard-filter-list/ || { echo "Directory not found: ./data/blocklist/"; exit 1; }
|
||||
|
||||
# Download the oisd.txt file
|
||||
oisd_url="https://big.oisd.nl"
|
||||
@@ -20,7 +20,7 @@ else
|
||||
echo "Successfully downloaded $oisd_file"
|
||||
fi
|
||||
|
||||
cd /opt/adguard-filter-list
|
||||
cd /opt/adguard-filter-list/
|
||||
|
||||
# Create compiled blocklist
|
||||
time /usr/local/bin/hostlist-compiler -v -c hostlist-compiler-config.json -o blocklist
|
||||
@@ -30,6 +30,6 @@ currentDate=`/bin/date '+%Y-%m-%d'`
|
||||
currentTime=`/bin/date '+%H:%M:%S'`
|
||||
|
||||
# Push it to GitHub
|
||||
#git add *
|
||||
#git commit -m "Blocklist update ${currentDate} ${currentTime}"
|
||||
#git push
|
||||
git add *
|
||||
git commit -m "Blocklist update ${currentDate} ${currentTime}"
|
||||
git push
|
||||
|
||||
Reference in New Issue
Block a user