aboutsummaryrefslogtreecommitdiffstats
path: root/main/java-common/java-common.trigger
blob: d46bcbe8ba0a0a9a5f9b725e0fcc2aea1f1994c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

if [ -x /usr/lib/jvm/forced-jvm ]; then
	ln -sfn forced-jvm default-jvm
	exit 0
fi

cd /usr/lib/jvm
LATEST=`ls -d java-* | sort -Vr | head -1`
if [ "$LATEST" ]; then
	ln -sfn $LATEST default-jvm
fi