neykov commented on this pull request.
> @@ -177,7 +177,11 @@ function installOpenJDK() {
echo reusing JAVA_HOME $JAVA_HOME
else
if which dpkg &> /dev/null; then
- apt-get-update && apt-get-install openjdk-6-jdk
+ apt-get update && \
+ PACKAGE=`apt-cache search --names-only '^openjdk-.-jdk$' | sort -r |
cut -d' ' -f1 | head -1` && \
+ [ ! -z "$PACKAGE" ] && \
+ DEBIAN_FRONTEND=noninteractive && \
+ { apt-get -q -y install $PACKAGE-headless || apt-get -q -y install
$PACKAGE; }
Oh it's an alias, wondered how it was working before :). Will update.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1045