Force update-ngxblocker to download a new file by first deleting the existing one.

This commit is contained in:
Mitchell Krog 2017-07-25 12:23:19 +02:00
parent 44643037e5
commit e7d47a5dd7
2 changed files with 5 additions and 1 deletions

View file

@ -106,6 +106,10 @@ sudo nginx -c /etc/nginx/nginx.conf
# ****************************************************************************************
cd /usr/sbin
# First delete the globalblacklist.conf file so that the update actually pulls a new file
sudo rm /usr/local/nginx/conf.d/globalblacklist.conf
sudo ./update-ngxblocker -b /usr/local/nginx/bots.d -e mitchellkrog@gmail.com
# *********************

View file

@ -125,7 +125,7 @@ sudo chmod +x $TRAVIS_BUILD_DIR/.dev-tools/generate-regex-format-referrers.php
sudo chmod +x $TRAVIS_BUILD_DIR/.dev-tools/modify-config-readme-files.sh
sudo chmod +x $TRAVIS_BUILD_DIR/.dev-tools/modify-files-and-commit.sh
sudo chmod +x $TRAVIS_BUILD_DIR/.dev-tools/run-curl-tests.sh
sudo chmod +x $TRAVIS_BUILD_DIR/.dev-tools/run-curl-tests2.sh
sudo chmod +x $TRAVIS_BUILD_DIR/.dev-tools/run-curl-tests-2.sh
sudo chmod +x $TRAVIS_BUILD_DIR/.dev-tools/prepare-robots-input.sh
sudo chmod +x $TRAVIS_BUILD_DIR/.dev-tools/install-nginx-2.sh