F OpenNebula/one#6912: Fix LVM Thin script requirements (#3752)

Signed-off-by: josepselga <jselga@opennebula.io>
This commit is contained in:
Josep Selga authored and GitHub committed 2025-08-06 11:10:31 +02:00
1 parent 1a4d3f4b74
commit 29a294df39
1 file changed
+19
+19
View File
@@ -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'