updated java state

This commit is contained in:
Paul 2023-03-31 17:22:18 +02:00
parent d46572f8f9
commit 9f8afd1ef8
2 changed files with 3 additions and 0 deletions

View File

@ -41,5 +41,7 @@ java-update-alternatives-script:
java-default:
cmd.run:
- name: {{ java.install_dir }}/default/update-alternatives-java.sh
- stateful: True
- require:
- archive: java-extract
- file: java-update-alternatives-script

View File

@ -5,3 +5,4 @@ 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
echo "changed=no comment='java alternatives up to date' whatever=123"