From 8a98e1a12ae3111a60c4f21b0a73e9ad4307da14 Mon Sep 17 00:00:00 2001 From: Mitchell Krog Date: Mon, 5 Jul 2021 09:40:15 +0200 Subject: [PATCH] GHA workflow - Debug blacklist-ips.conf [skip travis] --- .github/workflows/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 777dd4447..1ecb5835d 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -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