mirror of
https://github.com/PurpleComputing/helpful-scripts.git
synced 2026-09-17 19:30:41 +01:00
Update test-raiseticket.sh
This commit is contained in:
@@ -43,6 +43,8 @@ echo Command: NotificationOn: >> /var/tmp/depnotify.log
|
||||
|
||||
echo Command: ContinueButton: Hide >> /var/tmp/depnotify.log
|
||||
|
||||
#Remove any but the last diagnose file created.
|
||||
|
||||
echo Status: Creating System Report, estimated time: 5 minutes >> /var/tmp/depnotify.log
|
||||
rm -rf /Users/Shared/.Purple/Diagnostics/*
|
||||
mkdir -p "/Users/Shared/.Purple/Diagnostics/"
|
||||
@@ -71,6 +73,8 @@ echo Status: Zipping Diagnostics Info, estimated time: 3 minutes >> /var/tmp/de
|
||||
cd "/Users/Shared/.Purple/Diagnostics/$dt/"
|
||||
zip -er -P "$zippass" "/Users/Shared/.Purple/Diagnostics/"Diagnostics.$user.$host.$dt.zip .
|
||||
|
||||
#Consider removing the unecrypted files immediately after compression has finished so we only leave password protected file on the device
|
||||
|
||||
echo Status: Uploading Diagnotics, estimated time: 2 minutes >> /var/tmp/depnotify.log
|
||||
rm -rf "/Users/Shared/.Purple/Diagnostics/"$dt.uploadurl.txt
|
||||
curl --upload-file "/Users/Shared/.Purple/Diagnostics/"Diagnostics.$user.$host.$dt.zip https://purplediagnose-uk.keep.sh -H "Replace" >> "/Users/Shared/.Purple/Diagnostics/"$dt.uploadurl.txt
|
||||
|
||||
Reference in New Issue
Block a user