lib/system_builder/configurator.rb in system-builder-0.0.21 vs lib/system_builder/configurator.rb in system-builder-0.0.22
- old
+ new
@@ -47,10 +47,11 @@
f.puts "START=no"
end
unless File.directory?(manifest)
chroot.image.install "/tmp/puppet.pp", manifest
- chroot.sudo "puppet --color=false tmp/puppet.pp | tee /tmp/puppet.log"
+ # chmod +r to make file readable for buildbot
+ chroot.sudo "puppet --color=false tmp/puppet.pp | tee /tmp/puppet.log && chmod +r /tmp/puppet.log"
process_log_file(chroot.image.expand_path("/tmp/puppet.log"))
else
context_dir = "/tmp/puppet"
chroot.image.mkdir context_dir