Skip to content

Commit 4786ecb

Browse files
Use travis build dir for running install-ngxblocker
1 parent 6cc9ac4 commit 4786ecb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

travis-ci/install-nginx2.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@
6060
#nginx -c "$DIR/nginx/nginx.conf"
6161
echo $TRAVIS_BUILD_DIR
6262
ls -la /etc/nginx
63-
cd /usr/sbin
64-
sudo wget https://raw.githubusercontent.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/master/install-ngxblocker -O install-ngxblocker
65-
sudo chmod +x install-ngxblocker
66-
sudo ./install-ngxblocker -x
63+
sudo chmod +x /home/travis/build/mitchellkrogza/Travis-CI-Nginx-for-Testing-Nginx-Configuration/install-ngxblocker
64+
sudo /home/travis/build/mitchellkrogza/Travis-CI-Nginx-for-Testing-Nginx-Configuration/install-ngxblocker -x
6765
ls -la /etc/nginx

0 commit comments

Comments
 (0)