aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/disk-image-builder/ubuntu/scripts-remote/post-install.sh
diff options
context:
space:
mode:
authorCarsten Koester <ckoester@cisco.com>2016-08-08 01:04:20 -0400
committerPeter Mikus <pmikus@cisco.com>2016-10-04 09:53:15 +0000
commit45dec69a7fd988a3fe1df37c2df7e5964e2a34ae (patch)
treeb7c5ef2c19b34f8d7eaa8cec44a865ec77250e09 /resources/tools/disk-image-builder/ubuntu/scripts-remote/post-install.sh
parenta912d105f3a1d8fed0b4cf6b18e0ef7789be81bf (diff)
Add JAVA_HOME and include Java in PATH environment variables.
Change-Id: Ic2781afc713a7a9333adca3022eff533c4d1594c Signed-off-by: Carsten Koester <ckoester@cisco.com> Signed-off-by: pmikus <pmikus@cisco.com>
Diffstat (limited to 'resources/tools/disk-image-builder/ubuntu/scripts-remote/post-install.sh')
-rw-r--r--resources/tools/disk-image-builder/ubuntu/scripts-remote/post-install.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/resources/tools/disk-image-builder/ubuntu/scripts-remote/post-install.sh b/resources/tools/disk-image-builder/ubuntu/scripts-remote/post-install.sh
index da05b4350c..b69e0e2350 100644
--- a/resources/tools/disk-image-builder/ubuntu/scripts-remote/post-install.sh
+++ b/resources/tools/disk-image-builder/ubuntu/scripts-remote/post-install.sh
@@ -77,6 +77,18 @@ ls -lR /var/lib/vm
mkdir -p /mnt/huge
echo 'hugetlbfs /mnt/huge hugetlbfs mode=1770,gid=111 0 0' >> /etc/fstab
+##
+## Java
+##
+echo "********** CREATING JAVA SHELL PROFILE **********"
+mkdir -p /etc/profile.d
+echo 'export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64' > /etc/profile.d/java.sh
+echo 'export PATH=$JAVA_HOME/bin:$PATH' >> /etc/profile.d/java.sh
+
+
+##
+## Changelog
+##
echo "********** MOVING CHANGELOG AND VERSION FILES **********"
mv ${TEMP_PATH}/VERSION /