From 6f068e0b9c3696d1ecbb0fbc139e2cca696ad3f1 Mon Sep 17 00:00:00 2001 From: Promofaux Date: Fri, 15 Jul 2016 19:32:49 +0100 Subject: [PATCH] Replace sprunge.us with termbin, which appears to be more reliable. --- advanced/Scripts/piholeDebug.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/advanced/Scripts/piholeDebug.sh b/advanced/Scripts/piholeDebug.sh index fdb7847d..87a87f88 100755 --- a/advanced/Scripts/piholeDebug.sh +++ b/advanced/Scripts/piholeDebug.sh @@ -340,12 +340,12 @@ function dumpPiHoleLog { # Anything to be done after capturing of pihole.log terminates function finalWork { echo "::: Finshed debugging!" - SPRUNGE=$(cat /var/log/pihole_debug.log | curl --silent --connect-timeout 5 -F 'sprunge=<-' http://sprunge.us) + TERMBIN=$(cat /var/log/pihole_debug.log | nc termbin.com 9999) - # Check if sprunge.us is reachable. When it's not, point to local log instead - if [ -n "$SPRUNGE" ] + # Check if termbin.com is reachable. When it's not, point to local log instead + if [ -n "$TERMBIN" ] then - echo "::: Debug log can be found at : $SPRUNGE" + echo "::: Debug log can be found at : $TERMBIN" else echo "::: Debug log can be found at : /var/log/pihole_debug.log" fi