GHA workflow - Debug blacklist-ips.conf [skip travis]

This commit is contained in:
Mitchell Krog 2021-07-05 09:40:15 +02:00
parent 399f91f15a
commit 8a98e1a12a
No known key found for this signature in database
GPG key ID: E02E9D10427B6A43

View file

@ -66,7 +66,7 @@ jobs:
shell: bash
run: |
sudo cat /etc/nginx/bots.d/blacklist-ips.conf
ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'
#ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'
ip -o route get to 8.8.8.8 | sed -n 's/.*src \([0-9.]\+\).*/\1/p'
sudo cat /etc/nginx/sites-available/default.vhost
sudo nginx -t