Nginx Test 3 Added

This commit is contained in:
Mitchell Krog 2017-08-27 11:10:50 +02:00
parent f6899b6a8b
commit ebfc501d13
No known key found for this signature in database
GPG key ID: 2BB9A077C8DD6994
15 changed files with 106 additions and 27 deletions

View file

@ -47,6 +47,7 @@
# Make Sure We Cleanup From Nginx Test 1
# **************************************
printf '\n%s\n%s\n%s\n\n' "###################################" "STARTING NGINX TEST 2" "###################################"
printf '\n%s\n%s\n%s\n\n' "###################################" "Cleaning up Files from Nginx Test 1" "###################################"
sudo rm /etc/nginx/sites-available/default.vhost
sudo rm /etc/nginx/sites-enabled/default.vhost
@ -229,6 +230,14 @@ sudo service nginx reload
printf '\n%s\n%s\n%s\n\n' "##############################################################################" "Copy latest generated globalblacklist.conf file to test for any compile errors" "##############################################################################"
sudo cp $TRAVIS_BUILD_DIR/conf.d/globalblacklist.conf /usr/local/nginx/conf.d/globalblacklist.conf
# **************************
# Run setup-ngxblocker Again
# **************************
printf '\n%s\n%s\n%s\n\n' "####################" "Run setup-ngxblocker to fix includes in globalblacklist.conf" "####################"
cd /usr/sbin
sudo bash ./setup-ngxblocker -x -c /usr/local/nginx/conf.d -b /usr/local/nginx/bots.d
# *********************
# Force reload of Nginx
# *********************