From Mathieu Parent
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Sun, 12 Oct 2008 21:21:20 +0000 (08:21 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Sun, 12 Oct 2008 21:21:20 +0000 (08:21 +1100)
patch to make debian systems log the package versions in
ctdb_diagnostics

tools/ctdb_diagnostics

index 437580f7e0a292bb166bcdb898ffeb4982dc8d9b..4415a90a8ae4e88dd7ea75f772fdcf903e43d964 100755 (executable)
@@ -93,6 +93,11 @@ show_all "uname -a"
 [ -x /bin/rpm ] && {
     show_all "rpm -qa | egrep 'samba|ctdb|gpfs'"
 }
+[ -x /usr/bin/dpkg-query ] && {
+    show_all "/usr/bin/dpkg-query --show 'ctdb'"
+    show_all "/usr/bin/dpkg-query --show 'samba'"
+    #show_all "/usr/bin/dpkg-query --show 'gpfs'"
+}
 
 
 cat <<EOF