[V4] Fix beta tests

This commit is contained in:
Mitchell Krog 2019-06-27 15:43:59 +02:00
parent d1cdfd6573
commit 29f2e78afa
No known key found for this signature in database
GPG key ID: C243C388553EDE5D
2 changed files with 20 additions and 0 deletions

View file

@ -55,6 +55,25 @@ cyan=$(tput setaf 6)
white=$(tput setaf 7)
defaultcolor=$(tput setaf default)
printf "\n"
echo "${bold}${yellow}-----------------------------------"
echo "${bold}${yellow}Delete Files to force fresh testing"
echo "${bold}${yellow}-----------------------------------"
printf "\n"
sudo rm /etc/nginx/conf.d/*.conf
sudo rm /etc/nginx/bots.d/*.conf
ls -la /etc/nginx/conf.d/
ls -la /etc/nginx/bots.d/
printf "\n"
echo "${bold}${magenta}-------------------------"
echo "${bold}${magenta}Execute update-ngxblocker"
echo "${bold}${magenta}-------------------------"
printf "\n"
cd /usr/sbin
sudo bash ./update-ngxblocker -n
# ***********************************************************************
# Make sure we test latest generated globalblacklist-testing-version.conf
# ***********************************************************************

View file

@ -62,6 +62,7 @@ if curl -v -A "80legs" http://localhost:9000 2>&1 | grep -i '(52)'; then
echo "${bold}${green}PASSED - ${red}80legs BAD BOT DETECTED"
else
echo "${bold}${red}FAILED - ${red}80legs BAD BOT NOT DETECTED"
curl -v -A "80legs" http://localhost:9000 2>&1
exit 1
fi
}