You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context: I'm trying to using the cookbook to install multiple versions of java on the same machine and then manage these versions using alternatives. From the investigation i've done I dont think this is possible with the current implementation.
link is the name of its symlink
name is the generic name for the master link
path is the alternative being introduced for the master link
--display name
Display information about the link group of which name is the master link. Information displayed includes the group's mode (auto or manual), which alternative the symlink currently points to, what other alternatives are available (and their corresponding slave alternatives), and the highest priority alternative currently installed.
So after i've installed two versions of java when I run "alternatives --display java" I should see two options
displayed. However I only see one option the master link.
If this is still an issue please reopen or open another issue. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help!
Context: I'm trying to using the cookbook to install multiple versions of java on the same machine and then manage these versions using alternatives. From the investigation i've done I dont think this is possible with the current implementation.
So from the alternatives documentation http://linux.about.com/library/cmd/blcmdl8_alternatives.htm
--install link name path
link is the name of its symlink
name is the generic name for the master link
path is the alternative being introduced for the master link
--display name
Display information about the link group of which name is the master link. Information displayed includes the group's mode (auto or manual), which alternative the symlink currently points to, what other alternatives are available (and their corresponding slave alternatives), and the highest priority alternative currently installed.
So after i've installed two versions of java when I run "alternatives --display java" I should see two options
displayed. However I only see one option the master link.
After a little investigation I found this line in the provider https://github.com/agileorbit-cookbooks/java/blob/master/providers/alternatives.rb#L41 "shell_out("rm /var/lib/alternatives/#{cmd}")" which is run before each install. This wipes out all java alternative information meaning the last version installed will be the only one configured correctly.
This line was introduced to fix this issue https://github.com/agileorbit-cookbooks/java/issues/134 I'm not sure that its the best solution to the issue because it renders alternatives pretty much useless.
If i'm missing something i'm all ears!
Edit: Looks like this pull request addresses the issues i'm seeing https://github.com/agileorbit-cookbooks/java/pull/259 are there plans to merge and release this?
The text was updated successfully, but these errors were encountered: