Permalink
Browse files

1.9.2 compat: specify :mode to FileUtils.install

  • Loading branch information...
1 parent 8e34d3e commit ed2c95db94e5db7c1b8ba09e277c88423e5c2e15 @danp danp committed with FooBarWidget May 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/phusion_passenger/standalone/runtime_installer.rb
@@ -307,7 +307,7 @@ def copy_files(files, target)
if !File.directory?(dir)
FileUtils.mkdir_p(dir)
end
- FileUtils.install(filename, "#{target}/#{filename}")
+ FileUtils.install(filename, "#{target}/#{filename}", :mode => File.stat(filename).mode)
yield(i + 1, files.size)
end
end

0 comments on commit ed2c95d

Please sign in to comment.