paulbsd-salt/states/java/templates/update-alternatives-java.sh.j2
2023-01-04 23:33:41 +01:00

8 lines
316 B
Django/Jinja

#!/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