Minor formatting fixes on Nginx Tests 1,2 and 3

This commit is contained in:
Mitchell Krog 2017-08-27 11:32:46 +02:00
parent 879e6ff02a
commit 3e906b6d2e
No known key found for this signature in database
GPG key ID: 2BB9A077C8DD6994
3 changed files with 10 additions and 7 deletions

View file

@ -43,18 +43,20 @@
# Start Getting Nginx Ready for Testing the Nginx Bad Bot Blocker
# ***************************************************************
printf '\n%s\n%s\n%s\n\n' "###################################" " STARTING NGINX TEST 1" "###################################"
# ******************************************************
# Make a backup of the clean and default nginx.conf file
# Needed to run Nginx test 3
# ******************************************************
printf '\n%s\n%s\n%s\n\n' "###################################" "Making backup of default nginx.conf" "###################################"
sudo cp /etc/nginx/nginx.conf $TRAVIS_BUILD_DIR/.dev-tools/_nginx_conf_backup/nginx.conf
# *************************************************
# Delete default site created by Nginx Installation
# *************************************************
printf '\n%s\n%s\n%s\n\n' "###################################" "STARTING NGINX TEST 1" "###################################"
printf '\n%s\n%s\n%s\n\n' "###########################################" "Delete any default files installed by Nginx" "###########################################"
sudo rm /etc/nginx/sites-available/default
sudo rm /etc/nginx/sites-enabled/default