From 48a61ef2a5521ef756e0587f5a7f079db477bffb Mon Sep 17 00:00:00 2001 From: Mitchell Krog Date: Tue, 3 Oct 2017 15:07:06 +0200 Subject: [PATCH] ADD Nginx Mainstream Test (Step 8) --- .dev-tools/install-nginx-4.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.dev-tools/install-nginx-4.sh b/.dev-tools/install-nginx-4.sh index 2f285394e..ea46abee9 100755 --- a/.dev-tools/install-nginx-4.sh +++ b/.dev-tools/install-nginx-4.sh @@ -43,18 +43,25 @@ # Start Getting Nginx Ready for Testing the Nginx Bad Bot Blocker # *************************************************************** -# ***************************** -# Lets Install Mainstream Nginx -# ***************************** +# *********************************** +# Lets Uninstall Current Nginx 1.12.1 +# *********************************** sudo apt-get -y remove nginx sudo apt-get -y remove nginx-extras sudo apt-get -y install software-properties-common +sudo apt-get -y autoremove + +# ***************************** +# Lets Install Mainstream Nginx +# ***************************** + mainstreamnginx=development sudo add-apt-repository -y ppa:nginx/$mainstreamnginx sudo apt-get update sudo apt-get install -y --assume-yes nginx-extras sudo nginx -V +sudo nginx -t sudo service nginx start # Find where Nginx Mainstream Installed to and Find The Service or We Have to Enable it