Fix: safer behaviour handling java variables 08/70508/7
authorMatthew Watkins <mwatkins@linuxfoundation.org>
Tue, 16 Aug 2022 16:08:39 +0000 (17:08 +0100)
committerMatthew Watkins <mwatkins@linuxfoundation.org>
Fri, 19 Aug 2022 16:34:11 +0000 (17:34 +0100)
commit95dd6ce9f01825541ac0c1b6ed6fb3e4c095047c
tree58e1829b3bd26762c1d3db20e8ae096fc6d36b0b
parent2866593326538d6cba981820f0e9b5ba99189492
Fix: safer behaviour handling java variables

Detect both Debian and Ubuntu when configuring java runtime parameters.
This works around a minor OS detection bugs that applies to Docker
containers. Also, improved the handling of an unset variable when
setting the java runtime. This reduces the likelihood of rewriting a
working variable with a broken one.

Change-Id: I69c0756d740430dabef823fa8eed8cbf67e343c6
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
releasenotes/notes/safer-java-variable-handling-04c92b7148ac4cac.yaml [new file with mode: 0644]
shell/maven-sonar.sh
shell/update-java-alternatives.sh