add ut1's original source and add checks to the scripts
This commit is contained in:
parent
41cfd38024
commit
021b43471c
5 changed files with 18 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,4 @@
|
|||
/oisd/big
|
||||
/oisd/nsfw
|
||||
/ut1/ut1.tar.gz
|
||||
/ut1/blacklists/
|
||||
|
|
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,3 +0,0 @@
|
|||
[submodule "ut1"]
|
||||
path = ut1
|
||||
url = https://github.com/olbat/ut1-blacklists.git
|
4
getall.sh
Executable file
4
getall.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
echo Fetching blocklists...
|
||||
./getut1.sh
|
||||
./getoisd.sh
|
|
@ -1,4 +1,7 @@
|
|||
#!/bin/bash
|
||||
echo Fetching OISD blocklists
|
||||
if ! command -v curl >/dev/null; then
|
||||
echo 'curl is required for this script to run.'
|
||||
fi
|
||||
curl https://big.oisd.nl/domainswild2 -o oisd/big
|
||||
curl https://nsfw.oisd.nl/domainswild2 -o oisd/nsfw
|
||||
|
|
9
getut1.sh
Executable file
9
getut1.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
if ! command -v ftp >/dev/null; then
|
||||
echo 'ftp is required for this script to work.'
|
||||
fi
|
||||
if ! command -v tar >/dev/null; then
|
||||
echo 'tar is required for this script to work.'
|
||||
fi
|
||||
ftp ftp://ftp.ut-capitole.fr/pub/reseau/cache/squidguard_contrib/blacklists.tar.gz -o ut1/ut1.tar.gz
|
||||
tar xzf ut1/ut1.tar.gz -C ut1/
|
Loading…
Reference in a new issue