Switch log uploader from 0x0.st to logs.omarchy.org

0x0.st has been intermittently down. logs.omarchy.org accepts the same
curl -F 'file=@-' POST and returns the resulting URL in the response
body, so the swap is purely the endpoint. Dropping the -Fexpires=24
parameter since logs.omarchy.org doesn't honour it (and doesn't expire
uploads by default).
This commit is contained in:
Ryan Hughes
2026-06-04 18:34:35 -04:00
parent ad5c942725
commit ed06892970
2 changed files with 8 additions and 12 deletions
+2 -4
View File
@@ -74,15 +74,13 @@ ACTION=$(gum choose "${OPTIONS[@]}")
case "$ACTION" in
"Upload log")
echo "Uploading debug log to 0x0.st..."
URL=$(curl -sF "file=@$LOG_FILE" -Fexpires=24 https://0x0.st)
echo "Uploading debug log to logs.omarchy.org..."
URL=$(curl -sf -F "file=@$LOG_FILE" https://logs.omarchy.org/)
if (( $? == 0 )) && [[ -n $URL ]]; then
echo "✓ Log uploaded successfully!"
echo "Share this URL:"
echo ""
echo " $URL"
echo ""
echo "This link will expire in 24 hours."
else
echo "Error: Failed to upload log file"
exit 1
+6 -8
View File
@@ -1,6 +1,6 @@
#!/bin/bash
# omarchy:summary=Upload logs to 0x0.st
# omarchy:summary=Upload logs to logs.omarchy.org
# omarchy:args=<log-file>
# omarchy:hidden=true
@@ -53,7 +53,7 @@ install)
exit 1
fi
echo "Uploading installation log to 0x0.st..."
echo "Uploading installation log to logs.omarchy.org..."
;;
this-boot)
@@ -66,7 +66,7 @@ this-boot)
exit 1
fi
echo "Uploading current boot logs to 0x0.st..."
echo "Uploading current boot logs to logs.omarchy.org..."
;;
last-boot)
@@ -79,7 +79,7 @@ last-boot)
exit 1
fi
echo "Uploading previous boot logs to 0x0.st..."
echo "Uploading previous boot logs to logs.omarchy.org..."
;;
installed|system-info)
@@ -98,7 +98,7 @@ installed|system-info)
exit 1
fi
echo "Uploading system information to 0x0.st..."
echo "Uploading system information to logs.omarchy.org..."
;;
*)
@@ -113,15 +113,13 @@ esac
echo ""
URL=$(curl -sF "file=@$TEMP_LOG" -Fexpires=24 https://0x0.st)
URL=$(curl -sf -F "file=@$TEMP_LOG" https://logs.omarchy.org/)
if (( $? == 0 )) && [[ -n $URL ]]; then
echo "✓ Log uploaded successfully!"
echo "Share this URL:"
echo ""
echo " $URL"
echo ""
echo "This link will expire in 24 hours."
else
echo "Error: Failed to upload log file"
exit 1