Add log util
This commit is contained in:
1 parent
d1515212c0
commit
133f5b7b03
3 files changed
+40
No files matched your search
@@ -96,6 +96,11 @@ EOF
|
||||
mkdir -p /mnt/home/$OMARCHY_USER/.local/share/applications/icons
|
||||
cp -r /root/.local/share/applications/icons/* /mnt/home/$OMARCHY_USER/.local/share/applications/icons/
|
||||
|
||||
# Copy the log upload utility to the installed system
|
||||
mkdir -p /mnt/usr/local/bin
|
||||
cp /usr/local/bin/omarchy-upload-install-log /mnt/usr/local/bin/
|
||||
chmod +x /mnt/usr/local/bin/omarchy-upload-install-log
|
||||
|
||||
chown -R 1000:1000 /mnt/home/$OMARCHY_USER/.local/
|
||||
# Ensure all scripts in bin directories are executable
|
||||
find /mnt/home/$OMARCHY_USER/.local/share/omarchy -type f -path "*/bin/*" -exec chmod +x {} \;
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Upload Omarchy install log to 0x0.st
|
||||
|
||||
LOG_FILE="/var/log/omarchy-install.log"
|
||||
|
||||
if [ ! -f "$LOG_FILE" ]; then
|
||||
echo "Error: Install log not found at $LOG_FILE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Uploading Omarchy install log to 0x0.st..."
|
||||
echo "The log will expire in 24 hours."
|
||||
echo ""
|
||||
|
||||
# Upload the file and capture the URL
|
||||
URL=$(curl -sF "file=@$LOG_FILE" -Fexpires=24 https://0x0.st)
|
||||
|
||||
if [ $? -eq 0 ] && [ -n "$URL" ]; then
|
||||
echo "✓ Log uploaded successfully!"
|
||||
echo "Share this URL with support:"
|
||||
echo ""
|
||||
echo " $URL"
|
||||
echo ""
|
||||
echo "This link will expire in 24 hours."
|
||||
else
|
||||
echo "Error: Failed to upload log file"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user