summaryrefslogtreecommitdiffstats
path: root/main/java-common/java-common.trigger
blob: 6d0613d48e9291e3ca0f65b7e92f27de9f0b9600 (plain)
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 -r | head -1`
if [ "$LATEST" ]; then
	ln -sfn $LATEST default-jvm
fi