paulbsd-salt/states/java/update-alternatives-java.sh.j2

7 lines
315 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
#!/usr/bin/env bash
{%- from "java/map.jinja" import java with context %}
for item in $(ls {{ java.install_dir }}/default/bin)
do
update-alternatives --install /usr/bin/${item} ${item} {{ java.install_dir }}/default/bin/${item} 1
update-alternatives --set ${item} {{ java.install_dir }}/default/bin/${item}
done