mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-08 23:20:56 +00:00
Debug auto mode engaged
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
parent
ba5bbf3523
commit
9b060aab34
@ -407,16 +407,19 @@ finalWork() {
|
|||||||
local tricorder
|
local tricorder
|
||||||
echo "::: Finshed debugging!"
|
echo "::: Finshed debugging!"
|
||||||
echo "::: The debug log can be uploaded to tricorder.pi-hole.net for sharing with developers only."
|
echo "::: The debug log can be uploaded to tricorder.pi-hole.net for sharing with developers only."
|
||||||
read -r -p "::: Would you like to upload the log? [y/N] " response
|
if [[ "${AUTOMATED}" ]]; then
|
||||||
case ${response} in
|
tricorder=$(cat /var/log/pihole_debug.log | nc tricorder.pi-hole.net 9999)
|
||||||
[yY][eE][sS]|[yY])
|
else
|
||||||
tricorder=$(cat /var/log/pihole_debug.log | nc tricorder.pi-hole.net 9999)
|
read -r -p "::: Would you like to upload the log? [y/N] " response
|
||||||
;;
|
case ${response} in
|
||||||
*)
|
[yY][eE][sS]|[yY])
|
||||||
echo "::: Log will NOT be uploaded to tricorder."
|
tricorder=$(cat /var/log/pihole_debug.log | nc tricorder.pi-hole.net 9999)
|
||||||
;;
|
;;
|
||||||
esac
|
*)
|
||||||
|
echo "::: Log will NOT be uploaded to tricorder."
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
# Check if tricorder.pi-hole.net is reachable and provide token.
|
# Check if tricorder.pi-hole.net is reachable and provide token.
|
||||||
if [ -n "${tricorder}" ]; then
|
if [ -n "${tricorder}" ]; then
|
||||||
echo "::: Your debug token is : ${tricorder}"
|
echo "::: Your debug token is : ${tricorder}"
|
||||||
|
Loading…
Reference in New Issue
Block a user