mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-21 22:38:08 +00:00
Small style change to finished debug upload display
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
be68a5339c
commit
cbc99d45c6
@ -1338,7 +1338,7 @@ curl_to_tricorder() {
|
|||||||
if [[ "${tricorder_token}" != "https://tricorder.pi-hole.net/"* ]]; then
|
if [[ "${tricorder_token}" != "https://tricorder.pi-hole.net/"* ]]; then
|
||||||
log_write " * ${COL_GREEN}curl${COL_NC} failed, contact Pi-hole support for assistance."
|
log_write " * ${COL_GREEN}curl${COL_NC} failed, contact Pi-hole support for assistance."
|
||||||
# Log curl error (if available)
|
# Log curl error (if available)
|
||||||
if [ ! -z "${tricorder_token}" ]; then
|
if [ -n "${tricorder_token}" ]; then
|
||||||
log_write " * Error message: ${COL_RED}${tricorder_token}${COL_NC}\\n"
|
log_write " * Error message: ${COL_RED}${tricorder_token}${COL_NC}\\n"
|
||||||
tricorder_token=""
|
tricorder_token=""
|
||||||
fi
|
fi
|
||||||
@ -1386,15 +1386,14 @@ upload_to_tricorder() {
|
|||||||
# Again, try to make this visually striking so the user realizes they need to do something with this information
|
# Again, try to make this visually striking so the user realizes they need to do something with this information
|
||||||
# Namely, provide the Pi-hole devs with the token
|
# Namely, provide the Pi-hole devs with the token
|
||||||
log_write ""
|
log_write ""
|
||||||
log_write "${COL_PURPLE}***********************************${COL_NC}"
|
log_write "${COL_PURPLE}*****************************************************************${COL_NC}"
|
||||||
log_write "${COL_PURPLE}***********************************${COL_NC}"
|
log_write "${COL_PURPLE}*****************************************************************${COL_NC}\\n"
|
||||||
log_write "${TICK} Your debug token is: ${COL_GREEN}${tricorder_token}${COL_NC}"
|
log_write "${TICK} Your debug token is: ${COL_GREEN}${tricorder_token}${COL_NC}"
|
||||||
log_write "${INFO}${COL_RED} Logs are deleted 48 hours after upload.${COL_NC}"
|
log_write "${INFO}${COL_RED} Logs are deleted 48 hours after upload.${COL_NC}\\n"
|
||||||
log_write "${COL_PURPLE}***********************************${COL_NC}"
|
log_write "${COL_PURPLE}*****************************************************************${COL_NC}"
|
||||||
log_write "${COL_PURPLE}***********************************${COL_NC}"
|
log_write "${COL_PURPLE}*****************************************************************${COL_NC}"
|
||||||
log_write ""
|
log_write ""
|
||||||
log_write " * Provide the token above to the Pi-hole team for assistance at"
|
log_write " * Provide the token above to the Pi-hole team for assistance at ${FORUMS_URL}"
|
||||||
log_write " * ${FORUMS_URL}"
|
|
||||||
|
|
||||||
# If no token was generated
|
# If no token was generated
|
||||||
else
|
else
|
||||||
|
2
pihole
2
pihole
@ -409,7 +409,7 @@ tricorderFunc() {
|
|||||||
if [[ "${tricorder_token}" != "https://tricorder.pi-hole.net/"* ]]; then
|
if [[ "${tricorder_token}" != "https://tricorder.pi-hole.net/"* ]]; then
|
||||||
echo -e "${CROSS} uploading failed, contact Pi-hole support for assistance."
|
echo -e "${CROSS} uploading failed, contact Pi-hole support for assistance."
|
||||||
# Log curl error (if available)
|
# Log curl error (if available)
|
||||||
if [ ! -z "${tricorder_token}" ]; then
|
if [ -n "${tricorder_token}" ]; then
|
||||||
echo -e "${INFO} Error message: ${COL_RED}${tricorder_token}${COL_NC}\\n"
|
echo -e "${INFO} Error message: ${COL_RED}${tricorder_token}${COL_NC}\\n"
|
||||||
tricorder_token=""
|
tricorder_token=""
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user