java-common.trigger 210 Bytes
Newer Older
1 2 3 4 5 6 7 8
#!/bin/sh

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

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