Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Commit

rt branch, 4.2/report-os-details, created. rt-4.0.6-446-g7534d84

 

 

Request Tracker commit RSS feed   Index | Next | Previous | View Threaded


trs at bestpractical

Aug 9, 2012, 12:46 PM

Post #1 of 1 (75 views)
Permalink
rt branch, 4.2/report-os-details, created. rt-4.0.6-446-g7534d84

The branch, 4.2/report-os-details has been created
at 7534d84af3b2962a45cd3ad8041ea8e98ad34014 (commit)

- Log -----------------------------------------------------------------
commit 7534d84af3b2962a45cd3ad8041ea8e98ad34014
Author: Thomas Sibley <trs [at] bestpractical>
Date: Thu Aug 9 12:44:54 2012 -0700

Report basic operating system information on System Configuration

Three often useful pieces of info to know when debugging.

diff --git a/share/html/Admin/Tools/Configuration.html b/share/html/Admin/Tools/Configuration.html
index ed7d465..bf0b3a7 100644
--- a/share/html/Admin/Tools/Configuration.html
+++ b/share/html/Admin/Tools/Configuration.html
@@ -256,6 +256,25 @@ if ($item =~ /^\s*(.*?)\s*v(\S+);/) {
</pre>
</&>

+<&|/Widgets/TitleBox, title => loc("Operating System") &>
+<table border="0" cellspacing="0" cellpadding="5" width="100%" class="collection">
+<%perl>
+my %os = (
+ "Distribution" => 'lsb_release --all',
+ "uname -a" => 'uname -a',
+ "SELinux status" => 'getenforce',
+);
+my $row = 0;
+</%perl>
+% while (my ($name, $cmd) = each %os) {
+<tr class="collection-as-table <% $row++ % 2 ? "oddline" : "evenline" %>">
+<td class="collection-as-table"><% $name %></td>
+<td class="collection-as-table" style="white-space: pre; font-family: monospace"><% `$cmd </dev/null 2>/dev/null` || '' %></td>
+</tr>
+% }
+</table>
+</&>
+
<%INIT>
use Data::Dumper;
local $Data::Dumper::Terse = 1;

-----------------------------------------------------------------------
_______________________________________________
Rt-commit mailing list
Rt-commit [at] lists
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-commit

Request Tracker commit RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.