From d86f8384eb9eb4a16e512820f750f62c518a9137 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 24 Jan 2010 09:09:47 +0100 Subject: Adding update-alternatives call to set sun-java as default java in sun-java example hook. --- examples/hooks/all_chroot_sun-java6.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples/hooks/all_chroot_sun-java6.sh') diff --git a/examples/hooks/all_chroot_sun-java6.sh b/examples/hooks/all_chroot_sun-java6.sh index c86066fba..5a7596279 100755 --- a/examples/hooks/all_chroot_sun-java6.sh +++ b/examples/hooks/all_chroot_sun-java6.sh @@ -26,3 +26,6 @@ DEBIAN_FRONTEND="dialog" apt-get install --yes sun-java6-bin sun-java6-demo \ # Ensure that /tmp has the right permissions; apparently sun-java5-doc tampers # with it chmod 1777 /tmp + +# Set sun-java as default java +update-alternatives --set java /usr/lib/jvm/java-6-sun/jre/bin/java -- cgit v1.2.3