1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
|
From: =?utf-8?q?C=C3=A9dric_Boutillier?= <boutil@debian.org>
Date: Fri, 6 May 2022 12:58:18 -0300
Subject: do not mess with LOAD_PATH in bin/* files
Last-Update: 2014-01-16
---
bin/passenger | 6 ------
bin/passenger-config | 6 ------
bin/passenger-install-apache2-module | 6 ------
bin/passenger-install-nginx-module | 6 ------
bin/passenger-memory-stats | 6 ------
bin/passenger-status | 6 ------
6 files changed, 36 deletions(-)
diff --git a/bin/passenger b/bin/passenger
index 3760e53..81a7c86 100755
--- a/bin/passenger
+++ b/bin/passenger
@@ -24,12 +24,6 @@
# THE SOFTWARE.
## Magic comment: begin bootstrap ##
-source_root = File.expand_path("..", File.dirname(__FILE__))
-$LOAD_PATH.unshift("#{source_root}/src/ruby_supportlib")
-begin
- require 'rubygems'
-rescue LoadError
-end
require 'phusion_passenger'
## Magic comment: end bootstrap ##
diff --git a/bin/passenger-config b/bin/passenger-config
index a38e4e9..cd8d735 100755
--- a/bin/passenger-config
+++ b/bin/passenger-config
@@ -24,12 +24,6 @@
# THE SOFTWARE.
## Magic comment: begin bootstrap ##
-source_root = File.expand_path("..", File.dirname(__FILE__))
-$LOAD_PATH.unshift("#{source_root}/src/ruby_supportlib")
-begin
- require 'rubygems'
-rescue LoadError
-end
require 'phusion_passenger'
## Magic comment: end bootstrap ##
diff --git a/bin/passenger-install-apache2-module b/bin/passenger-install-apache2-module
index 532e8e3..2003b1d 100755
--- a/bin/passenger-install-apache2-module
+++ b/bin/passenger-install-apache2-module
@@ -25,12 +25,6 @@
# THE SOFTWARE.
## Magic comment: begin bootstrap ##
-source_root = File.expand_path("..", File.dirname(__FILE__))
-$LOAD_PATH.unshift("#{source_root}/src/ruby_supportlib")
-begin
- require 'rubygems'
-rescue LoadError
-end
require 'phusion_passenger'
## Magic comment: end bootstrap ##
diff --git a/bin/passenger-install-nginx-module b/bin/passenger-install-nginx-module
index 08eb1d2..e5eca3f 100755
--- a/bin/passenger-install-nginx-module
+++ b/bin/passenger-install-nginx-module
@@ -24,12 +24,6 @@
# THE SOFTWARE.
## Magic comment: begin bootstrap ##
-source_root = File.expand_path("..", File.dirname(__FILE__))
-$LOAD_PATH.unshift("#{source_root}/src/ruby_supportlib")
-begin
- require 'rubygems'
-rescue LoadError
-end
require 'phusion_passenger'
## Magic comment: end bootstrap ##
diff --git a/bin/passenger-memory-stats b/bin/passenger-memory-stats
index 175b688..17c4c57 100755
--- a/bin/passenger-memory-stats
+++ b/bin/passenger-memory-stats
@@ -24,12 +24,6 @@
# THE SOFTWARE.
## Magic comment: begin bootstrap ##
-source_root = File.expand_path("..", File.dirname(__FILE__))
-$LOAD_PATH.unshift("#{source_root}/src/ruby_supportlib")
-begin
- require 'rubygems'
-rescue LoadError
-end
require 'phusion_passenger'
## Magic comment: end bootstrap ##
diff --git a/bin/passenger-status b/bin/passenger-status
index a4e7bc4..31d0e22 100755
--- a/bin/passenger-status
+++ b/bin/passenger-status
@@ -24,12 +24,6 @@
# THE SOFTWARE.
## Magic comment: begin bootstrap ##
-source_root = File.expand_path("..", File.dirname(__FILE__))
-$LOAD_PATH.unshift("#{source_root}/src/ruby_supportlib")
-begin
- require 'rubygems'
-rescue LoadError
-end
require 'phusion_passenger'
## Magic comment: end bootstrap ##
|