From 38a184e4e1dc728fa4893a0b8779ab66a94961df Mon Sep 17 00:00:00 2001 From: luke Date: Fri, 25 Aug 2006 21:36:06 +0000 Subject: Changing permissions on the cert file and the ca cert file, since it is no problem for them to be readable and sometimes it is required git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1488 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/daemon.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/puppet/daemon.rb b/lib/puppet/daemon.rb index c341bf219..a4594eb7f 100755 --- a/lib/puppet/daemon.rb +++ b/lib/puppet/daemon.rb @@ -207,8 +207,8 @@ module Puppet if cert.nil? or cert == "" return nil end - File.open(@certfile, "w", 0660) { |f| f.print cert } - File.open(@cacertfile, "w", 0660) { |f| f.print cacert } + File.open(@certfile, "w", 0644) { |f| f.print cert } + File.open(@cacertfile, "w", 0644) { |f| f.print cacert } begin @cert = OpenSSL::X509::Certificate.new(cert) @cacert = OpenSSL::X509::Certificate.new(cacert) -- cgit