From 3e3a52bb035a1447055d268f07b712b5afc16a11 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 29 Sep 2011 22:59:27 -0300 Subject: Misc fixes at puppet-finger --- share/hydractl/puppet-finger | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'share') diff --git a/share/hydractl/puppet-finger b/share/hydractl/puppet-finger index 1449797..5016554 100755 --- a/share/hydractl/puppet-finger +++ b/share/hydractl/puppet-finger @@ -25,10 +25,12 @@ function puppet_openssl { # openssl x509 -text -noout -fingerprint -in /var/lib/puppetmaster/ssl/certs/ca.pem # if [ -d "/var/lib/puppetmaster/ssl/" ]; then - for file in `ls /var/lib/puppetmaster/ssl/ca/signed/*pem`; do - fp="`puppet_openssl $file`" - echo "`basename $file .pem`: $fp" - done + if [ -d "/var/lib/puppetmaster/ssl/ca/signed/" ]; then + for file in `ls /var/lib/puppetmaster/ssl/ca/signed/*pem`; do + fp="`puppet_openssl $file`" + echo "`basename $file .pem`: $fp" + done + fi echo "ca: `puppet_openssl /var/lib/puppetmaster/ssl/certs/ca.pem`" fi @@ -40,7 +42,7 @@ fi # if [ -d "/var/lib/puppet/ssl/" ]; then fqdn="`facter fqdn`" - fp="`puppet_openssl /var/lib/puppetmaster/ssl/ca/signed/$fqdn.pem`" + fp="`puppet_openssl /var/lib/puppet/ssl/certs/$fqdn.pem`" echo "$fqdn: $fp" echo "ca: `puppet_openssl /var/lib/puppet/ssl/certs/ca.pem`" -- cgit v1.2.3