mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-04 14:12:01 +09:00
F OpenNebula/one#6912: Fix LVM Thin script requirements (#3752)
Signed-off-by: josepselga <jselga@opennebula.io>
This commit is contained in:
1 parent
1a4d3f4b74
commit
29a294df39
1 file changed
+19
@@ -15,6 +15,25 @@
|
||||
# See the License for the specific language governing permissions and #
|
||||
# limitations under the License. #
|
||||
#--------------------------------------------------------------------------- #
|
||||
|
||||
ONE_LOCATION = ENV['ONE_LOCATION'] unless defined?(ONE_LOCATION)
|
||||
|
||||
if !ONE_LOCATION
|
||||
LIB_LOCATION ||= '/usr/lib/one'
|
||||
RUBY_LIB_LOCATION ||= '/usr/lib/one/ruby'
|
||||
GEMS_LOCATION ||= '/usr/share/one/gems'
|
||||
else
|
||||
LIB_LOCATION ||= ONE_LOCATION + '/lib'
|
||||
RUBY_LIB_LOCATION ||= ONE_LOCATION + '/lib/ruby'
|
||||
GEMS_LOCATION ||= ONE_LOCATION + '/share/gems'
|
||||
end
|
||||
|
||||
# %%RUBYGEMS_SETUP_BEGIN%%
|
||||
require 'load_opennebula_paths'
|
||||
# %%RUBYGEMS_SETUP_END%%
|
||||
|
||||
$LOAD_PATH << RUBY_LIB_LOCATION
|
||||
|
||||
$LOAD_PATH.unshift('/var/tmp/one')
|
||||
|
||||
require 'fileutils'
|
||||
|
||||
Reference in new issue
Block a user