Blocklist update

This commit is contained in:
root
2024-12-16 10:58:31 +00:00
parent 0d5742de7a
commit faf80b8f2f
3 changed files with 907669 additions and 643377 deletions

View File

@@ -1,6 +1,26 @@
#!/bin/bash
cd /home/adguard-filter-list
# Navigate to blocklist directory
cd /opt/data || { echo "Directory not found: ./data/blocklist/"; exit 1; }
# Download the oisd.txt file
oisd_url="https://big.oisd.nl"
oisd_file="oisd.txt"
echo "Downloading oisd.txt from $oisd_url..."
wget -q -O $oisd_file $oisd_url
# Verify the download
if [[ $? -ne 0 || ! -f $oisd_file ]]; then
echo "Error: Failed to download oisd.txt from $oisd_url"
exit 1
else
echo "Successfully downloaded $oisd_file"
fi
cd /opt/adguard-filter-list
# Create compiled blocklist
time /usr/local/bin/hostlist-compiler -v -c hostlist-compiler-config.json -o blocklist
@@ -10,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