update
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-02-05 13:41:25 +09:00
parent e73e9364cd
commit 4ee56900e9
7 changed files with 534 additions and 285 deletions

View File

@@ -2,5 +2,10 @@
echo "Updating 280blocker filter..."
FILTER_PATH="/var/www/html/_/280blocker.txt"
curl -sL "https://280blocker.net/files/280blocker_adblock_$(date +"%Y%m").txt" -o "$FILTER_PATH"
ROOT_DIR="/var/www/html/_"
FILTER_PATH="$ROOT_DIR/280blocker.txt"
DOMAIN_PATH="$ROOT_DIR/280blocker_domain.txt"
DATE=$(date +"%Y%m")
curl -sL "https://280blocker.net/files/280blocker_adblock_${DATE}.txt" -o "$FILTER_PATH"
curl -sL "https://280blocker.net/files/280blocker_domain_${DATE}.txt" -o "$DOMAIN_PATH"