Browse Source

Update debug script for server v2 (#571)

Co-authored-by: Luke Childs <lukechilds123@gmail.com>
ensure-nginx-stays-alive
Aaron Dewes 4 years ago
committed by GitHub
parent
commit
a3b228e45a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      scripts/debug

16
scripts/debug

@ -34,7 +34,15 @@
# function to upload the output to our paste server # function to upload the output to our paste server
# Based on https://github.com/seejohnrun/haste-client#lightweight-alternative # Based on https://github.com/seejohnrun/haste-client#lightweight-alternative
upload() { a=$(cat); curl -X POST -s -d "$a" https://umbrel-paste.vercel.app/documents | awk -F '"' '{print "https://umbrel-paste.vercel.app/"$6}'; } upload() {
curl \
--header "Content-Type: text/plain" \
--request POST \
--silent \
--data-binary @- \
https://umbrel-paste.vercel.app/documents \
| awk -F '"' '{print "https://umbrel-paste.vercel.app/"$6}'
}
echo "=====================" echo "====================="
echo "= Umbrel debug info =" echo "= Umbrel debug info ="
@ -156,8 +164,7 @@ if [[ ! -z "${UMBREL_OS:-}" ]]; then
echo "you can contact us on Telegram (t.me/getumbrel) and share the output of this script." echo "you can contact us on Telegram (t.me/getumbrel) and share the output of this script."
if [[ "${1}" == "--upload" ]]; then if [[ "${1}" == "--upload" ]]; then
echo "You can also share these links instead:" echo "You can also share these links instead:"
./scripts/debug | sed '/onion/d' | upload echo "$(./scripts/debug | sed '/onion/d') === Umbrel-Paste split === $(dmesg)" | upload
dmesg | upload
else else
echo "Run this script again with the --upload flag to automatically generate a link to share." echo "Run this script again with the --upload flag to automatically generate a link to share."
fi fi
@ -176,8 +183,7 @@ if [[ "${1}" == "--upload" ]]; then
# This runs the script twice, but it works # This runs the script twice, but it works
echo "This script could not automatically detect an issue with your Umbrel." echo "This script could not automatically detect an issue with your Umbrel."
echo "Please share the following links and paste it in the Umbrel Telegram group (https://t.me/getumbrel) so we can help you with your problem." echo "Please share the following links and paste it in the Umbrel Telegram group (https://t.me/getumbrel) so we can help you with your problem."
./scripts/debug | sed '/onion/d' | upload echo "$(./scripts/debug | sed '/onion/d') === Umbrel-Paste split === $(dmesg)" | upload
dmesg | upload
else else
echo "This script could not automatically detect an issue with your Umbrel." echo "This script could not automatically detect an issue with your Umbrel."
echo "Please copy the entire output of this script and paste it in the Umbrel Telegram group (https://t.me/getumbrel) so we can help you with your problem." echo "Please copy the entire output of this script and paste it in the Umbrel Telegram group (https://t.me/getumbrel) so we can help you with your problem."

Loading…
Cancel
Save