diff options
author | Daniel Baumann <daniel@debian.org> | 2010-01-24 09:09:47 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2010-01-31 14:19:45 +0100 |
commit | f560e977a9633272bb258443919acf18e3184743 (patch) | |
tree | 3301a455e629e99cf4c6122492c41b41753e8380 /examples | |
parent | daeec2c4ca8a81ea7cdc83cf5aef52ae4040acc4 (diff) | |
download | vyos-live-build-f560e977a9633272bb258443919acf18e3184743.tar.gz vyos-live-build-f560e977a9633272bb258443919acf18e3184743.zip |
Adding update-alternatives call to set sun-java as default java in sun-java example hook.
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/hooks/all_chroot_sun-java6.sh | 3 |
1 files changed, 3 insertions, 0 deletions
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 |