mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-15 03:49:10 +00:00
Replace sprunge.us with termbin, which appears to be more reliable.
This commit is contained in:
parent
ada531c88a
commit
6f068e0b9c
1 changed files with 4 additions and 4 deletions
|
@ -340,12 +340,12 @@ function dumpPiHoleLog {
|
||||||
# Anything to be done after capturing of pihole.log terminates
|
# Anything to be done after capturing of pihole.log terminates
|
||||||
function finalWork {
|
function finalWork {
|
||||||
echo "::: Finshed debugging!"
|
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
|
# Check if termbin.com is reachable. When it's not, point to local log instead
|
||||||
if [ -n "$SPRUNGE" ]
|
if [ -n "$TERMBIN" ]
|
||||||
then
|
then
|
||||||
echo "::: Debug log can be found at : $SPRUNGE"
|
echo "::: Debug log can be found at : $TERMBIN"
|
||||||
else
|
else
|
||||||
echo "::: Debug log can be found at : /var/log/pihole_debug.log"
|
echo "::: Debug log can be found at : /var/log/pihole_debug.log"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue