-
-
Notifications
You must be signed in to change notification settings - Fork 637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with providers/alternatives.rb #134
Comments
I'm also having this problem. With alternatives on redhat 6.4. The current Haven't had time to debug that particular cookbook yet. If anyone does fix
|
We had to create symlinks from /usr/lib/jvm/java/bin/* -> /etc/alternatives/ |
Issue #134 Remove /var/lib/alternatives/#{cmd} before calling alternatives.
I just merged #144 and released cookbook version 1.21.0. Could you please update to the latest and see if this is fixed? |
Closing - please reopen if this is still an issue. |
Deleting the symlink before doing the --install for alternatives means that you can only ever manage one version of java using alternatives, because before installing a second version it will wipe /var/lib/alternatives/java https://github.com/agileorbit-cookbooks/java/blob/master/providers/alternatives.rb#L41 And only the most recently installed version will be configured to use alternatives. Is this a conscious decision? |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi,
I'm having problems with alternatives on my vagrant box.
The VM is taken from here: "http://opscode-vagrant-boxes.s3.amazonaws.com/centos5-gems.box" (also had the same problem with another centos 5 image). I'm using chef_solo.
How to reproduce:
1 - vagrant up
2 - vagrant provision
The second time provisioning runs you'll get this error:
I think the problem is due to the way "alternatives" behave when using "--install":
The text was updated successfully, but these errors were encountered: