Author: msergeant
Date: Thu Mar 13 12:51:00 2008
New Revision: 855

Modified:
   trunk/plugins/tls_cert

Log:
Don't pass --fqdn to hostname if it fails


Modified: trunk/plugins/tls_cert
==============================================================================
--- trunk/plugins/tls_cert      (original)
+++ trunk/plugins/tls_cert      Thu Mar 13 12:51:00 2008
@@ -5,6 +5,10 @@
 
 my %opts = ();
 chomp (my $hostname = `hostname --fqdn`);
+if ($?) {
+    chomp($hostname = `hostname`);
+}
+print "Using hostname: $hostname\n";
 my %defaults = (
     C  => 'XY',
     ST => 'unknown',

Reply via email to