diff --git a/test-raiseticket.sh b/test-raiseticket.sh index b28ed4d..37df08c 100644 --- a/test-raiseticket.sh +++ b/test-raiseticket.sh @@ -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