Install Nginx Mainline - Copy nginx.conf into place

This commit is contained in:
Mitchell Krog 2019-06-29 20:09:28 +02:00
parent 7465ca0a14
commit b269f92a35
No known key found for this signature in database
GPG key ID: C243C388553EDE5D

View file

@ -254,6 +254,14 @@ getnginxversion () {
sudo nginx -v &> ${TRAVIS_BUILD_DIR}/.dev-tools/nginxv3.txt 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 # Trigger Functions
# ----------------- # -----------------
@ -282,6 +290,7 @@ runsetupngxblocker1
reloadNginX reloadNginX
waitforReload waitforReload
activateLatestBlacklist activateLatestBlacklist
copyNginxConf
runsetupngxblocker1 runsetupngxblocker1
reloadNginX reloadNginX
waitforReload waitforReload