Ensuring basics are installed

This commit is contained in:
Marwolf
2018-07-16 18:14:20 -04:00
parent ba2bab432c
commit d0bf03afe1

View File

@@ -62,6 +62,11 @@ if [ "$install" == "1" ]; then
fi fi
# UBUNTU Version <=================================================== # UBUNTU Version <===================================================
echo ""
echo ""
echo "Verifying the basics are installed."
echo ""
sudo apt update && sudo apt install unzip git build-essential apt-transport-https ca-certificates curl software-properties-common -y
echo "" echo ""
echo "" echo ""
echo "Do you have Docker installed?" echo "Do you have Docker installed?"
@@ -75,7 +80,6 @@ if [ "$install" == "1" ]; then
if [ "$docker" == "1" ]; then if [ "$docker" == "1" ]; then
echo "Attempting to install Docker now" echo "Attempting to install Docker now"
echo "" echo ""
sudo apt update && sudo apt install git build-essential apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $vers stable" sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $vers stable"
sudo apt update && sudo apt install docker-ce docker-compose -y sudo apt update && sudo apt install docker-ce docker-compose -y
@@ -107,6 +111,11 @@ if [ "$install" == "1" ]; then
su -c 'yum update && yum install git' su -c 'yum update && yum install git'
echo "" echo ""
echo "" echo ""
echo "Verifying the basics are installed."
echo ""
su -c 'yum update && yum install unzip git build-essential apt-transport-https ca-certificates curl software-properties-common'
echo ""
echo ""
echo "Do you have Java OpenJDK installed already?" echo "Do you have Java OpenJDK installed already?"
echo "" echo ""
echo "${RED}1${NC} - Install for me!" echo "${RED}1${NC} - Install for me!"
@@ -161,6 +170,11 @@ if [ "$install" == "1" ]; then
fi fi
# Mac Brew <=================================================== # Mac Brew <===================================================
echo ""
echo ""
echo "Verifying the basics are installed."
echo ""
brew install unzip wget git curl
echo "" echo ""
echo "" echo ""
echo "Do you have Java OpenJDK 8 installed already?" echo "Do you have Java OpenJDK 8 installed already?"
@@ -189,7 +203,7 @@ if [ "$install" == "1" ]; then
# Mac Docker ===================================================> # Mac Docker ===================================================>
if [ "$docker" == "1" ]; then if [ "$docker" == "1" ]; then
echo "Downloading the Docker for Mac installer" echo "Downloading the Docker for Mac installer"
brew install wget echo ""
wget https://download.docker.com/mac/stable/Docker.dmg wget https://download.docker.com/mac/stable/Docker.dmg
hdiutil attach Docker.dmg hdiutil attach Docker.dmg
echo "" echo ""