REDROOM
PHP 8.0.30
Path:
Logout
Edit File
Size: 1.31 KB
Close
/opt/cpanel/ea-ruby27/src/passenger-release-6.1.5/dev/install_scripts_bootstrap_code.rb
Text
Base64
#!/usr/bin/env ruby # encoding: utf-8 # This script changes the bootstrap code for all Phusion Passenger commands, # as well as the Nginx module config script, so that they work no # matter which Ruby interpreter is currently in $PATH, and no matter how # Phusion Passenger is packaged. # # The bootstrap code must not add ruby_libdir to $LOAD_PATH. The active Ruby # can be *any* Ruby interpreter, maybe not even MRI. ruby_libdir belongs to # a Ruby interpreter installed by the distribution, and the files in it may # may be incompatible with the active Ruby. type = ARGV.shift if type == "--ruby" ruby_libdir = ARGV.shift BOOTSTRAP_CODE = %Q( ENV["PASSENGER_LOCATION_CONFIGURATION_FILE"] = "#{ruby_libdir}/phusion_passenger/locations.ini" begin require 'rubygems' rescue LoadError end require '#{ruby_libdir}/phusion_passenger' ) elsif type == "--nginx-module-config" bindir = ARGV.shift BOOTSTRAP_CODE = %Q( PASSENGER_CONFIG=#{bindir}/passenger-config ) else abort "Invalid type" end BOOTSTRAP_CODE.gsub!(/^ ( )?/, '').strip ARGV.each do |filename| File.open(filename, "r+") do |f| text = f.read text.sub!( /^## Magic comment: begin bootstrap ##.*## Magic comment: end bootstrap \#\#$/m, BOOTSTRAP_CODE) f.rewind f.truncate(0) f.write(text) end end
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 5 × Files: 10
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
boost-patches
DIR
-
drwxr-xr-x
2026-06-23 02:18:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ci
DIR
-
drwxr-xr-x
2026-06-23 02:18:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
configkit-schemas
DIR
-
drwxr-xr-x
2026-06-23 02:18:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rack.test
DIR
-
drwxr-xr-x
2026-06-23 02:18:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
vagrant
DIR
-
drwxr-xr-x
2026-06-23 02:18:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
colorize-logs
7.30 KB
lrwxr-xr-x
2026-06-09 17:55:31
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
copy_boost_headers
9.57 KB
lrwxr-xr-x
2026-06-09 17:55:31
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index_cxx_dependencies.rb
3.94 KB
lrwxr-xr-x
2026-06-09 17:55:31
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
install_scripts_bootstrap_code.rb
1.31 KB
lrwxr-xr-x
2026-06-09 17:55:31
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
list_tests
967 B
lrwxr-xr-x
2026-06-09 17:55:31
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
nginx_version_sha256
2.50 KB
lrwxr-xr-x
2026-06-09 17:55:31
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
parse_file_descriptor_log
2.55 KB
lrwxr-xr-x
2026-06-09 17:55:31
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ruby_server.rb
6.17 KB
lrwxr-xr-x
2026-06-09 17:55:31
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
runner
623 B
lrwxr-xr-x
2026-06-09 17:55:31
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
show-latest-crashlog-dir
784 B
lrwxr-xr-x
2026-06-09 17:55:31
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).