vlead / analytics-db

This repository will hold the documents and specifications for installing ELK stack for analytics purposes
Other
1 stars 2 forks source link

Automate java8 installer using bash #13

Closed ksripathi closed 6 years ago

ksripathi commented 7 years ago

While installing apt-get install oracle-java8-installer -y its prompting for license agreement 'YES' or 'NO' this is to be automated for ADS to execute it

ksripathi commented 7 years ago

Following bash commands automates the java8 installation

sudo apt-get install -y python-software-properties debconf-utils
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get update
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-set-selections
sudo apt-get install -y oracle-java8-installer
ksripathi commented 6 years ago

Above steps are broken due resource not available.

ksripathi commented 6 years ago

resource at https://tecadmin.net/install-oracle-java-8-ubuntu-via-ppa/ fixes the issue