offload listbot from netlify CDN

This commit is contained in:
t3chn0m4g3
2020-04-02 13:12:11 +00:00
parent e8af9a0aa7
commit 73e1842c16
4 changed files with 10 additions and 10 deletions

View File

@ -22,13 +22,13 @@ for i in $mySITES;
}
# Check for connectivity and download latest translation maps
myCHECK=$(fuCHECKINET "raw.githubusercontent.com")
myCHECK=$(fuCHECKINET "dtag-dev-sec.netlify.com")
if [ "$myCHECK" == "0" ];
then
echo "Connection to Github looks good, now downloading latest translation maps."
echo "Connection to Netlify looks good, now downloading latest translation maps."
cd /etc/listbot
aria2c -s16 -x 16 https://raw.githubusercontent.com/dtag-dev-sec/listbot/master/cve.yaml.bz2 && \
aria2c -s16 -x 16 https://raw.githubusercontent.com/dtag-dev-sec/listbot/master/iprep.yaml.bz2 && \
aria2c -s16 -x 16 https://dtag-dev-sec.netlify.com/cve.yaml.bz2 && \
aria2c -s16 -x 16 https://dtag-dev-sec.netlify.com/iprep.yaml.bz2 && \
bunzip2 -f *.bz2
cd /
else