1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

F #2799: install_gems warns if gems are packaged (#3831)

This commit is contained in:
Vlastimil Holer 2019-10-13 17:32:11 +02:00 committed by Ruben S. Montero
parent 6e909eeb05
commit 1578b0a3d1

View File

@ -438,6 +438,24 @@ def install_bundler_gem
end
def install_gems(packages, bundler = false)
gems_location = '/usr/share/one/gems'
if File.directory?(gems_location)
STDERR.puts(<<-EOT.unindent(12))
WARNING: Running install_gems is not necessary anymore, as all the
required dependencies are already installed by your packaging
system into symlinked location #{gems_location}. Ruby gems
installed by this script won't be used until this symlink exists.
Remove the symlink before starting the OpenNebula services
to use Ruby gems installed by this script. E.g. execute
# unlink #{gems_location}
Execution continues in 15 seconds ...
EOT
sleep(15)
end
if bundler
gems_list=which_gems(packages)
else