mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 18:50:13 +00:00
FIX install-nginx-1
This commit is contained in:
parent
aee7dcab5c
commit
43f2a7900c
2 changed files with 12 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Welcome to the Nginx</title>
|
<title>Welcome to Nginx</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div align=center>
|
<div align=center>
|
||||||
|
|
|
@ -88,8 +88,8 @@ printf "\n"
|
||||||
echo "${bold}${yellow}-------------------------------------------"
|
echo "${bold}${yellow}-------------------------------------------"
|
||||||
echo "${bold}${yellow}Delete any default files installed by Nginx"
|
echo "${bold}${yellow}Delete any default files installed by Nginx"
|
||||||
echo "${bold}${yellow}-------------------------------------------"
|
echo "${bold}${yellow}-------------------------------------------"
|
||||||
sudo rm /etc/nginx/sites-available/default
|
sudo rm /etc/nginx/sites-available/*
|
||||||
sudo rm /etc/nginx/sites-enabled/default
|
sudo rm /etc/nginx/sites-enabled/*
|
||||||
sudo rm /var/www/html/*
|
sudo rm /var/www/html/*
|
||||||
printf "\n"
|
printf "\n"
|
||||||
echo "${bold}${yellow}---------------------"
|
echo "${bold}${yellow}---------------------"
|
||||||
|
@ -198,6 +198,14 @@ sudo cp /etc/nginx/sites-available/default.vhost ${TRAVIS_BUILD_DIR}/.dev-tools/
|
||||||
sudo cp /etc/nginx/nginx.conf ${TRAVIS_BUILD_DIR}/.dev-tools/test1_conf_files/nginx.conf
|
sudo cp /etc/nginx/nginx.conf ${TRAVIS_BUILD_DIR}/.dev-tools/test1_conf_files/nginx.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
copyNginxConf () {
|
||||||
|
printf "\n"
|
||||||
|
echo "${bold}${magenta}------------------------------"
|
||||||
|
echo "${bold}${magenta}Copy nginx.conf to /etc/nginx/"
|
||||||
|
echo "${bold}${magenta}------------------------------"
|
||||||
|
sudo cp ${TRAVIS_BUILD_DIR}/.dev-tools/test_units/nginx.conf-newformat /etc/nginx/nginx.conf
|
||||||
|
}
|
||||||
|
|
||||||
# ------------------
|
# ------------------
|
||||||
# Start Installation
|
# Start Installation
|
||||||
# ------------------
|
# ------------------
|
||||||
|
@ -208,6 +216,7 @@ echo "${bold}${green}Start Nginx Test 1"
|
||||||
echo "${bold}${green}------------------"
|
echo "${bold}${green}------------------"
|
||||||
|
|
||||||
backupNginxConf
|
backupNginxConf
|
||||||
|
copyNginxConf
|
||||||
prepareVhost
|
prepareVhost
|
||||||
getinstallngxblocker
|
getinstallngxblocker
|
||||||
runinstallngxblocker
|
runinstallngxblocker
|
||||||
|
|
Loading…
Add table
Reference in a new issue