From f7f9e9c0236637fbffa9780fc25fef57ad0a96fd Mon Sep 17 00:00:00 2001 From: Tom Levy Date: Wed, 26 Feb 2020 00:45:11 +1300 Subject: [PATCH] Switch to default-jre-headless on server for yui-compressor Was previously openjdk-8-jdk. - yui-compressor only requires the JRE, not the full JDK - GUI libraries aren't required, headless version is enough - the JRE version doesn't really matter, use the default so it gets automatically updated --- script/install.bash | 2 +- script/install/{jdk.bash => jre.bash} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename script/install/{jdk.bash => jre.bash} (84%) diff --git a/script/install.bash b/script/install.bash index 9dedd570..55139df6 100755 --- a/script/install.bash +++ b/script/install.bash @@ -42,7 +42,7 @@ bash script/install/bundler.bash || exit 1 bash script/install/nokogiri.bash || exit 1 # nokogiri dependencies -bash script/install/jdk.bash || exit 1 # required by yui-compressor +bash script/install/jre.bash || exit 1 # required by yui-compressor sudo bash script/install/isolate.bash || exit 1 # install isolate sudo bash script/install/cgroup.bash || exit 1 # install cgroups diff --git a/script/install/jdk.bash b/script/install/jre.bash similarity index 84% rename from script/install/jdk.bash rename to script/install/jre.bash index 9820b59e..8b9a6f23 100644 --- a/script/install/jdk.bash +++ b/script/install/jre.bash @@ -10,7 +10,7 @@ # } || exit 1 #} -cmd="sudo apt-get install openjdk-8-jdk" # java required by yui-compressor gem +cmd="sudo apt-get install default-jre-headless" # java required by yui-compressor gem echo "$ $cmd" $cmd [[ $? -le 1 ]] || exit 1 # apt-get exit 0 = success, 1 = decline, otherwise unknown error