FXI Install Nginx Mainline PPA - Copy nginx.conf into place

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

View file

@ -247,6 +247,14 @@ getnginxversion () {
sudo nginx -v &> ${TRAVIS_BUILD_DIR}/.dev-tools/nginxv2.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
# -----------------
@ -275,6 +283,7 @@ runsetupngxblocker1
reloadNginX
waitforReload
activateLatestBlacklist
copyNginxConf
runsetupngxblocker1
reloadNginX
waitforReload