lib/phusion_passenger/standalone/runtime_installer.rb in passenger-4.0.3 vs lib/phusion_passenger/standalone/runtime_installer.rb in passenger-4.0.4
- old
+ new
@@ -197,10 +197,10 @@
end
def before_install
super
@plugin.call_hook(:runtime_installer_start, self) if @plugin
- @working_dir = "/tmp/#{myself}-passenger-standalone-#{Process.pid}"
+ @working_dir = "#{PlatformInfo.tmpexedir}/#{myself}-passenger-standalone-#{Process.pid}"
FileUtils.rm_rf(@working_dir)
FileUtils.mkdir_p(@working_dir)
@download_binaries = true if !defined?(@download_binaries)
@binaries_url_root ||= STANDALONE_BINARIES_URL_ROOT
end