mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Copy crash file to crash reporter directory if it exists
This commit is contained in:
parent
e9b5f8c729
commit
88dadca1ba
@ -102,6 +102,8 @@ $crash_report_header .= "\nCrash report details:\n";
|
||||
echo gettext("Processing...");
|
||||
file_put_contents("/var/crash/crashreport_header.txt", $crash_report_header);
|
||||
exec("/usr/bin/gzip /var/crash/*");
|
||||
if(file_exists("/tmp/PHP_errors.log"))
|
||||
exec("cp /tmp/PHP_errors.log /var/crash/");
|
||||
$files_to_upload = glob("/var/crash/*");
|
||||
echo "<p/>";
|
||||
echo gettext("Uploading...");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user