summaryrefslogtreecommitdiffstats
path: root/usr/local/www/crash_reporter.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/crash_reporter.php')
-rwxr-xr-xusr/local/www/crash_reporter.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/local/www/crash_reporter.php b/usr/local/www/crash_reporter.php
index c75fe72..fb92566 100755
--- a/usr/local/www/crash_reporter.php
+++ b/usr/local/www/crash_reporter.php
@@ -102,12 +102,11 @@ $crash_report_header .= "\nCrash report details:\n";
$files_to_upload = glob("/var/crash/*");
echo "<p/>";
echo gettext("Uploading...");
- echo "<p/>";
if(is_array($files_to_upload)) {
$resp = upload_crash_report($files_to_upload);
- print_r($resp);
exec("rm /var/crash/*");
- echo gettext("Crash files have been submitted for inspection.");
+ echo "<p/>";
+ print_r($resp);
echo "<p/><a href='/'>" . gettext("Continue") . "</a>" . gettext(" and delete crash report files.");
} else {
echo "Could not find any crash files.";
OpenPOWER on IntegriCloud