diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-08-25 21:36:06 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-08-25 21:36:06 +0000 |
commit | 38a184e4e1dc728fa4893a0b8779ab66a94961df (patch) | |
tree | 169409c918b1e1247e91c1c4827ff3873bc1588e | |
parent | b612a15f9585a4922e7bc928bf534180396bc22d (diff) | |
download | puppet-38a184e4e1dc728fa4893a0b8779ab66a94961df.tar.gz puppet-38a184e4e1dc728fa4893a0b8779ab66a94961df.tar.xz puppet-38a184e4e1dc728fa4893a0b8779ab66a94961df.zip |
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
-rwxr-xr-x | lib/puppet/daemon.rb | 4 |
1 files 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) |