ADD Nginx Mainstream Test (Step 13)

This commit is contained in:
Mitchell Krog 2017-10-03 15:43:09 +02:00
parent ada194050d
commit b0ee3c8bb4
No known key found for this signature in database
GPG key ID: 2BB9A077C8DD6994
2 changed files with 123 additions and 3 deletions

View file

@ -53,11 +53,13 @@
#sudo apt-get -y autoremove
sudo rm -rfv /etc/nginx/mybots.d/
sudo rm -rfv /etc/nginx/myconf.d/
sudo rm /etc/nginx/conf.d/*
sudo rm /etc/nginx/bots.d/*
sudo rm /etc/nginx/conf.d/*.conf
sudo rm /etc/nginx/bots.d/*.conf
sudo rm /etc/nginx/sites-available/default
sudo rm /etc/nginx/nginx.conf
ls -la /etc/nginx/
sudo cp $TRAVIS_BUILD_DIR/.dev-tools/_nginx_conf_backup/nginx13.conf /etc/nginx/nginx.conf
ls -la /etc/nginx/
# *****************************
# Lets Install Mainstream Nginx
@ -67,10 +69,11 @@ mainstreamnginx=development
sudo add-apt-repository -y ppa:nginx/$mainstreamnginx
sudo apt-get update
sudo apt-get install -y --assume-yes nginx-extras
#sudo apt-get -y dist-upgrade
sudo nginx -V
sudo nginx -t
#sudo service nginx start
sudo /etc/init.d/nginx start
sudo /etc/init.d/nginx reload
# Find where Nginx Mainstream Installed to and Find The Service or We Have to Enable it