mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 18:50:13 +00:00
Install Nginx Mainline - Copy nginx.conf into place
This commit is contained in:
parent
7465ca0a14
commit
b269f92a35
1 changed files with 9 additions and 0 deletions
|
@ -254,6 +254,14 @@ getnginxversion () {
|
|||
sudo nginx -v &> ${TRAVIS_BUILD_DIR}/.dev-tools/nginxv3.txt
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
# -----------------
|
||||
# Trigger Functions
|
||||
# -----------------
|
||||
|
@ -282,6 +290,7 @@ runsetupngxblocker1
|
|||
reloadNginX
|
||||
waitforReload
|
||||
activateLatestBlacklist
|
||||
copyNginxConf
|
||||
runsetupngxblocker1
|
||||
reloadNginX
|
||||
waitforReload
|
||||
|
|
Loading…
Add table
Reference in a new issue